dir-is-case-sensitive
Returns true, if the specified directory is case sensitive
Last updated 7 years ago by zkochan .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install dir-is-case-sensitive 
SYNC missed versions from official npm registry.

dir-is-case-sensitive

Returns true, if the specified directory is case sensitive

Some filesystems are case sensitive, some are not. Some allow specific directories to be case sensitive. This package helps to detect if a directory is case sensitive or not.

Installation

<npm|yarn|pnpm> add dir-is-case-sensitive

Usage

import dirIsCaseSensitive from 'dir-is-case-sensitive'

await dirIsCaseSensitive('/src')
//>  true

API

dirIsCaseSensitive(dirPath, [silent=true]): Promise<boolean|undefined>

Arguments

  • dirPath - Path - the dir to check
  • silent - Boolean - Optional. true by default. When false, an error is thrown if cannot check case sensibility of the file.

Returns

  • true if dir is case sensible
  • false if dir is case sensible
  • undefined if could not detect

License

MIT © Zoltan Kochan

Current Tags

  • 1.0.2                                ...           latest (7 years ago)
  • 2.0.0                                ...           next (5 years ago)

4 Versions

  • 2.0.0                                ...           5 years ago
  • 1.0.2                                ...           7 years ago
  • 1.0.0                                ...           7 years ago
  • 0.0.0                                ...           7 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (2)
Dev Dependencies (6)

Copyright 2013 - present © cnpmjs.org | Home |