kimlimjustin / is-hidden-file

Check if a file/folder is hidden on node js that works on any platform.

Home Page:https://www.npmjs.com/package/is-hidden-file

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

is-hidden-file

npm version

Check if a file/folder is hidden on all platforms.

  • Unix: Check file name starts with ..
  • Windows: Check if file hidden using native code.

Installation

  • npm: npm i is-hidden-file
  • yarn: yarn add is-hidden-file

Usage

Node js

const { isHiddenFile } = require("is-hidden-file");

console.log(isHiddenFile(".git")) // true
console.log(isHiddenFile("README.md")) // false

Node js with typescript

import { isHiddenFile } from "is-hidden-file";

console.log(isHiddenFile(".git")) // true
console.log(isHiddenFile("README.md")) // false

License

MIT

About

Check if a file/folder is hidden on node js that works on any platform.

https://www.npmjs.com/package/is-hidden-file

License:MIT License


Languages

Language:C++ 47.8%Language:JavaScript 42.3%Language:Python 10.0%