is-hidden
Check if `basename` is hidden (starts with a dot)
Last updated 5 years ago by wooorm .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install is-hidden 
SYNC missed versions from official npm registry.

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

Current Tags

  • 2.0.0                                ...           latest (5 years ago)

7 Versions

  • 2.0.0                                ...           5 years ago
  • 1.1.3                                ...           6 years ago
  • 1.1.2                                ...           7 years ago
  • 1.1.1                                ...           9 years ago
  • 1.1.0                                ...           9 years ago
  • 1.0.1                                ...           11 years ago
  • 1.0.0                                ...           11 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (0)
None
Dev Dependencies (9)

Copyright 2013 - present © cnpmjs.org | Home |