dir-is-case-sensitive
Version:
Returns true, if the specified directory is case sensitive
42 lines (26 loc) • 902 B
Markdown
> 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.
```
<npm|yarn|pnpm> add dir-is-case-sensitive
```
```ts
import dirIsCaseSensitive from 'dir-is-case-sensitive'
await dirIsCaseSensitive('/src')
//> true
```
* 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.
* true if dir is case sensible
* false if dir is case sensible
* undefined if could not detect
[](LICENSE) © [Zoltan Kochan](https://www.kochan.io)