1.0.0 • Published 1 year ago

is-fs-case-sensitive v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

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.