npm stats
  • Search
  • About
  • Repo
  • Sponsor
  • more
    • Search
    • About
    • Repo
    • Sponsor

Made by Antonio Ramirez

is-filesystem-case-sensitive

0.1.0

@sindresorhus

npmHomeRepoSnykSocket
Downloads:0
$ npm install is-filesystem-case-sensitive
DailyWeeklyMonthlyYearly

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.