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 ago1637 dependents licensed under $MIT
93,350,952

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, 8 years ago405 dependents licensed under $MIT
30,686,216

Check if a path is the current working directory

published version 3.0.0, 3 years ago662 dependents licensed under $MIT
38,181,788

Check if a path is in the current working directory

published version 4.0.0, 4 years ago207 dependents licensed under $MIT
18,270,121

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

published version 3.0.0, 6 years ago393 dependents licensed under $MIT
11,219,017

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 ago130 dependents licensed under $MIT
4,957,081

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,096,807

Return the current working directory.

published version 0.2.2, 6 months ago73 dependents licensed under $Apache-2.0
1,438,689

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
266,246

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, 2 months ago19 dependents licensed under $MPL-2.0
148,509

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

published version 3.0.0, 2 months ago8 dependents licensed under $MPL-2.0
113,409

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

published version 0.3.4, 9 years ago9 dependents licensed under $MIT
98,465

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

published version 0.6.2, 7 years ago16 dependents licensed under $MIT
32,468

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
53,360

Get working directory of process by PID - cross platform

published version 1.2.0, 6 years ago3 dependents licensed under $MIT
34,410

Get the current package's binary path

published version 11.0.0, a year ago7 dependents licensed under $Apache-2.0
14,102

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
18,811

`modern-errors` plugin to clean stack traces

published version 6.0.0, a year ago2 dependents licensed under $MIT
3,389

process.chdir() in a callback plus directory stacks

published version 0.0.0, 13 years ago21 dependents licensed under $MIT
2,140

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, 10 months ago5 dependents licensed under $MIT
1,775