83 packages found
Check if a path is the current working directory
Check if a path is in the current working directory
Resolve the path of a module like `require.resolve()` but from the current working directory
Bash-like tilde expansion for node.js. Expands a leading tilde in a file path to the user home directory, or `~+` to the cwd.
Return the current working directory.
Import a module like with `require()` but from the current working directory
This CLI tool allows to organize mocha tests in files and directories. It works by traversing the test directory recursively, creating describe blocks per directory and tests per *.test.js file.
Change the current working directory.
Perform tasks relative to your package.json, such as requiring
Resolve the path of a package regardless of it having an entry point
Cross platform pwd (pathname of the current working directory)
Get the current package's binary path
- View more
<!-- TITLE/ --> # @dword-design/chdir <!-- /TITLE -->
Creates a temporary folder inside cwd, cds inside the folder, runs a function, and removes the folder. Especially useful for testing.
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.
Open the GitHub page of the given or current directory repo
Get a path string relative to the current working directory.
Temporarily change directories to run a callback
A helper function to resolve a module name or path in relation to the specified context and require it.
Small cli util that redacts path refs from stdin