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.

关于 About

Detect whether the filesystem backing a path is case-sensitive

语言 Languages

JavaScript100.0%

提交活跃度 Commit Activity

代码提交热力图
过去 52 周的开发活跃度
2
Total Commits
峰值: 2次/周
Less
More

核心贡献者 Contributors