npm

141 packages found

M
Q
P

Description

Normalize slashes in a file path to be posix/unix-like forward slashes. Also condenses repeat slashes to a single slash and removes and trailing slashes, unless disabled.

Keywords

Publisher

published 3.0.0a year ago
M
Q
P

Description

Replaces a file extension with another one

Keywords

Publisher

published 1.0.03 years ago
M
Q
P

Description

Resolve a directory that is either local, global or in the user's home directory.

Keywords

Publisher

published 1.0.12 years ago
M
Q
P

Description

Make a glob pattern absolute, ensuring that negative globs and patterns with trailing slashes are correctly handled.

Keywords

Publisher

published 2.0.22 years ago
M
Q
P

Description

Remove leading directory components from a path, like tar's --strip-components option

Keywords

Publisher

published 3.0.0a year ago
M
Q
P

Description

easier than regex string matching patterns for urls and other strings. turn strings into data or data into strings.

Keywords

Publisher

published 1.0.33 years ago
M
Q
P

Description

Convert Windows file paths to unix paths.

Keywords

Publisher

published 1.0.02 years ago
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

Open files in your editor at a specific line and column

Keywords

Publisher

published 2.0.15 months 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

Convert a dependency path into a filepath

Keywords

Publisher

published 2.0.09 months 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

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

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

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

Keywords

Publisher

published 4.2.03 months ago
M
Q
P

Description

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

Keywords

Publisher

published 2.1.3a year ago
M
Q
P

Description

Create a filepath from an object path (dot notation), list of arguments, array, number or Arguments object.

Keywords

Publisher

published 1.0.03 years ago
M
Q
P

Description

Transform relative path or glob pattern to absolute

Keywords

Publisher

published 1.0.05 years ago
M
Q
P

Description

Convert a string to be able to use as a filename with Japanese characters.

Keywords

Publisher

published 1.0.323 days ago