Skip to content

privatenumber/is-fs-case-sensitive

Repository files navigation

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.

About

Check whether the file-system is case-sensitive

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published