is-hidden

Check if `basename` is hidden (starts with a dot)

Usage no npm install needed!

<script type="module">
  import isHidden from 'https://cdn.skypack.dev/is-hidden';
</script>

README

is-hidden

Build Coverage Downloads Size

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 imported instead of required.

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).

License

MIT © Titus Wormer