@cjser/is-filesystem-case-sensitive
v0.1.0-cjser.2
Published
Detect whether the filesystem backing a path is case-sensitive
Downloads
11
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.
cjser
This package is a CommonJS-compatible build generated by cjser for projects that still need require() support. The source version matches the original npm package version, with a cjser prerelease suffix for this generated build.
Original repository: https://github.com/sindresorhus/is-filesystem-case-sensitive
