is-filesystem-case-sensitive
v0.1.0
Published
Detect whether the filesystem backing a path is case-sensitive
Maintainers
Readme
is-filesystem-case-sensitive
Detect whether the filesystem backing a path is case-sensitive
Mount-point aware. No OS heuristics.
Install
npm install is-filesystem-case-sensitiveUsage
import {isFileSystemCaseSensitive} from 'is-filesystem-case-sensitive';
await isFileSystemCaseSensitive('/some/path');
//=> true/falseAPI
May create and delete a temporary file in the target directory.
isFileSystemCaseSensitive(path?)
Returns Promise<boolean> — true if case-sensitive, false otherwise.
isFileSystemCaseSensitiveSync(path?)
Sync version of isFileSystemCaseSensitive.
Returns boolean.
path
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.
