npm

140 packages found

M
Q
P

Description

Get the relative filepath from path A to path B. Calculates from file-to-directory, file-to-file, directory-to-file, and directory-to-directory.

Keywords

Publisher

published 3.0.24 years ago
M
Q
P

Description

Get an unused filename by appending a number if it exists: `file.txt` → `file (1).txt`

Keywords

Publisher

published 2.1.05 months ago
M
Q
P

Description

Set the `contents` property on a file object. Abstraction from vinyl-fs to support stream or non-stream usage.

Keywords

Publisher

published 1.0.13 years ago
M
Q
P

Description

Write a JSON file to disk, also creates intermediate directories in the destination path if they don't already exist.

Keywords

Publisher

published 3.0.12 years ago
M
Q
P

Description

Convert a dependency path into a filepath

Keywords

Publisher

published 2.0.08 months ago
M
Q
P

Description

Delete files and folders and any intermediate directories if they exist (sync and async).

Keywords

Publisher

published 1.1.02 years ago
M
Q
P

Description

Resolves a given package if it is installed locally, then tries to resolve it from global registry, using battle-tested [global-modules][] package. Better approach than internal `require.resolve`, so you can trust. You just get absolute filepath to some p

Keywords

Publisher

published 1.0.13 years ago
M
Q
P

Description

Automatically re-write the destination extension of a filepath based on the source extension. e.g `.coffee` => `.js`. This will only rename the ext, no other path parts are modified.

Keywords

Publisher

published 1.0.02 years ago
M
Q
P

Description

Match filepath is validated, or exclude filepath that don't need.

Keywords

Publisher

published 1.0.25 years ago
M
Q
P

Description

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

Keywords

Publisher

published 1.0.02 years ago
M
Q
P

Description

Check to see if a directory exists

Keywords

Publisher

published 2.0.1a year ago
M
Q
P

Description

Get the icon of a file or app as a PNG image (macOS)

Keywords

Publisher

published 3.1.0a year ago
M
Q
P

Description

Replace placeholder values in a file path.

Keywords

Publisher

published 1.0.02 years ago
M
Q
P

Description

Generate temporary filepath string (without writing to disk). Using scaleable, secure and fast cross-platform [cuid][] package

Keywords

Publisher

published 2.0.03 years ago
M
Q
P

Description

Asynchronously return an array containing the paths of all files in a directory and its subdirectories

Keywords

Publisher

published 1.6.52 years ago
M
Q
P

Description

Resolve the path of a module from the directory where npm is installed

Keywords

Publisher

published 4.2.02 months ago
M
Q
P

Description

Returns true if a filepath starts with the given string. Works with windows and posix/unix paths.

Keywords

Publisher

published 2.0.04 months ago
M
Q
P

Description

Easily add powerful permalink or URL routing/URL rewriting capablities to any node.js project. Can be used in static site generators, build systems, web applications or anywhere you need to do path or URL transformation.

Keywords

Publisher

published 2.0.02 years ago
M
Q
P

Description

A proxy to `path`, replacing `\` with `/` for all results

Keywords

Publisher

published 2.1.310 months ago
M
Q
P

Description

Get file metadata using `mdls` on macOS

Keywords

Publisher

published 1.0.02 years ago