Search results

92 packages found

Resolve the path of a module like `require.resolve()` but from the current working directory

published version 3.0.0, 6 years ago1680 dependents licensed under $MIT
148,090,956

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

published version 2.0.2, 9 years ago405 dependents licensed under $MIT
49,038,828

Check if a path is the current working directory

published version 4.0.1, a month ago675 dependents licensed under $MIT
56,222,868

Import a module like with `require()` but from the current working directory

published version 3.0.0, 6 years ago395 dependents licensed under $MIT
16,900,781

Check if a path is in the current working directory

published version 4.0.0, 4 years ago208 dependents licensed under $MIT
25,776,165

Easily get the CWD (current working directory) of a project based on package.json, optionally starting from a given path. (node.js/javascript util)

published version 0.10.0, 9 years ago133 dependents licensed under $MIT
8,566,821

Resolve the path of a package regardless of it having an entry point

published version 2.0.0, 6 years ago185 dependents licensed under $MIT
5,756,975

Return the current working directory.

published version 0.2.2, a year ago73 dependents licensed under $Apache-2.0
1,963,490

Zero dependency library for reading and parsing various files from `procfs` for Node.js, implemented in pure JS.

published version 1.2.1, 5 years ago8 dependents licensed under $CC0-1.0
466,244

Provides a helper function to expand a path to a normalized absolute path. This function also expands dot, tilde, and tilde plus when used as the first path segment.

published version 3.0.0, 7 months ago21 dependents licensed under $MPL-2.0
259,025

A helper function to resolve a module name or path in relation to the specified context and require it.

published version 3.0.0, 7 months ago8 dependents licensed under $MPL-2.0
191,485

Base plugin that adds a getter/setter for the current working directory.

published version 0.3.4, 9 years ago9 dependents licensed under $MIT
127,890

Change working dir and return a promise, a stack of folders is maintained to jump back

published version 0.6.2, 8 years ago16 dependents licensed under $MIT
52,159

Get working directory of process by PID - cross platform

published version 1.2.0, 6 years ago3 dependents licensed under $MIT
69,901

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

published version 1.1.0, 8 years ago63 dependents licensed under $MIT
42,497

Get the current package's binary path

published version 11.0.1, 3 months ago7 dependents licensed under $Apache-2.0
21,818

Attempt to resolve the absolute filepath to a file and verify that it exists.

published version 0.3.1, 9 years ago5 dependents licensed under $MIT
21,369

Creates a temporary folder inside cwd, cds inside the folder, runs a function, and removes the folder. Especially useful for testing.

published version 5.1.1, a year ago6 dependents licensed under $MIT
6,715

process.chdir() in a callback plus directory stacks

published version 0.0.0, 14 years ago21 dependents licensed under $MIT
4,834

`modern-errors` plugin to clean stack traces

published version 6.0.1, 3 months ago4 dependents licensed under $MIT
4,901