$ npm install is-filesystem-case-sensitiveDetect whether the filesystem backing a path is case-sensitive
Mount-point aware. No OS heuristics.
npm install is-filesystem-case-sensitive
import {isFileSystemCaseSensitive} from 'is-filesystem-case-sensitive';
await isFileSystemCaseSensitive('/some/path');
//=> true/false
May create and delete a temporary file in the target directory.
Returns Promise<boolean> — true if case-sensitive, false otherwise.
Sync version of isFileSystemCaseSensitive.
Returns boolean.
Type: string
Default: process.cwd()
The path to check. Can be a file, directory, or non-existent path. Non-existent paths walk up to the nearest existing parent directory.