is-fs-case-sensitive
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

is-fs-case-sensitive Latest version Install size

Detect whether the file-system has case-sensitive file paths.

🙋‍♂️ Why?

File systems can have case-sensitive or case-insensitive file paths:

This distinction is important for tools that navigate the file-system (e.g. whether to apply a glob case-sensitively).

🚀 Install

npm install is-fs-case-sensitive

👨🏻‍🏫 Examples

import { isFsCaseSensitive } from 'is-fs-case-sensitive'

console.log(isFsCaseSensitive())
// => false

⚙️ API

isFsCaseSensitive(fs)

Returns: boolean

fs

Type: typeof fs

Default: import('fs')

The file-system to use to check for case-sensitivity.

Package Sidebar

Install

npm i is-fs-case-sensitive

Weekly Downloads

4

Version

1.0.0

License

MIT

Unpacked Size

4.63 kB

Total Files

7

Last publish

Collaborators

  • hirokiosame