88 packages found
Return 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.
Resolve the path of a module like `require.resolve()` but from the current working directory
Check if a path is the current working directory
Import a module like with `require()` but from the current working directory
Check if a path is in the current working directory
Resolve the path of a package regardless of it having an entry point
Change 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.
Get a path string relative to the current working directory.
Delete files and folders and any intermediate directories if they exist (sync and async).
Temporarily change directories to run a callback
process.chdir() in a callback plus directory stacks
Get the current package's binary path
- binary
- package-json
- npm
- path
- package
- unit-testing
- testing
- bin
- cwd
- executable
- package-manager
- nodejs
- javascript
- typescript
- View more
<!-- TITLE/ --> # @dword-design/chdir <!-- /TITLE -->
Enforces a nodejs script to run with the entry points path as the cwd
`modern-errors` plugin to clean stack traces
- browser
- clean
- code-quality
- cwd
- error
- error-handler
- error-handling
- error-monitoring
- error-reporting
- errors
- javascript
- library
- modern-errors
- modern-errors-plugin
- View more
Cross platform pwd (pathname of the current working directory)
Creates a temporary folder inside cwd, cds inside the folder, runs a function, and removes the folder. Especially useful for testing.
Convert relative path or URL to full path