Home

Awesome

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.