Star 历史趋势
数据来源: GitHub API · 生成自 Stargazers.cn
README.md
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-sensitive
Usage
import {isFileSystemCaseSensitive} from 'is-filesystem-case-sensitive'; await isFileSystemCaseSensitive('/some/path'); //=> true/false
API
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.