README
is-hidden
Check if basename
is hidden (starts with a dot).
Install
This package is ESM only: Node 12+ is needed to use it and it must be import
ed
instead of require
d.
npm:
npm install is-hidden
Use
import {isHidden} from 'is-hidden'
isHidden('.git') // => true
isHidden('readme.md') // => false
API
This package exports the following identifiers: isHidden
.
There is no default export.
isHidden(basename)
Check if basename
is hidden (starts with a dot).