npm 包搜索

搜索 npm 上的 JavaScript 依赖包

搜索 "file path" 的结果(共 37 个)
commondir

compute the closest common parent for file paths

MIT
is-binary-path

Check if a file path is a binary file

MIT
realize-package-specifier

Like npm-package-arg, but more so, producing full file paths and differentiating local tar and directory sources.

ISC
is-absolute

Returns true if a file path is absolute. Does not rely on the path module and can be used as a polyfill for node.js native `path.isAbolute`.

MIT
path-ends-with

Return `true` if a file path ends with the given string/suffix.

MIT
expand-tilde

Bash-like tilde expansion for node.js. Expands a leading tilde in a file path to the user home directory, or `~+` to the cwd.

MIT
glob-to-regex.js

Transform GLOB patterns to JavaScript regular expressions for fast file path matching.

Apache-2.0
file-url

Convert a file path to a file url: `unicorn.jpg` → `file:///Users/sindresorhus/unicorn.jpg`

MIT
contains-path

Return true if a file path contains the given path.

MIT
resolve-glob

Ensures that absolute file paths are always returned from a glob pattern or array of glob patterns.

MIT
metalsmith-paths

A metalsmith plugin that adds file path values to metadata

MIT
test-fixture

Copy test-fixtures to temp dir and get resolved file paths.

MIT
is-dotfile

Return true if a file path is (or has) a dotfile. Returns false if the path is a dot directory.

MIT
path-equal

Determine two file paths are equal

MIT
file-uri-to-path

Convert a file: URI to a file path

MIT
vinyl-paths

Get the file paths in a `vinyl` stream

MIT
globs-to-files

Expand multiple globs into file paths

MIT
line-column-path

Parse and stringify file paths with line and column like `unicorn.js:8:14`

MIT
path-segments

Get n specific segments of a file path, e.g. first 2, last 3, etc.

react-player

A React component for playing a variety of URLs, including file paths, Mux, YouTube, Vimeo, and Wistia

MIT
rev-path

Create a revved file path

MIT
is-unc-path

Returns true if a filepath is a windows UNC file path.

MIT
node-name

Basic utility methods for transforming and handling file paths.

fileurl2path

A tiny function for converting a file URL to a file path.

MIT
file-set

Cross-platform glob expansions simplified. Input: file paths and glob expressions. Output: resolved file paths organised by type (file, directory and not-found).

MIT
seekout

Looks for a provided file in the current directory and all parent directories and returns the first found file path

MIT
file-path-filter

Filters file paths using globs, regular expressions, or custom criteria

MIT
get-package-name

Get the name of a dependency from a module file path.

MIT