jonschlinkert / relativeLinks
Easily calculate the relative path from file A to file B in Node.js project. Will calculate correctly from a file to a directory, file to file, directory to file, and directory to directory.
☆33Updated 2 years ago
Alternatives and similar repositories for relative
Users that are interested in relative are comparing it to the libraries listed below
Sorting:
- Returns the directory used by NPM for globally installed NPM packages.☆35Updated 7 years ago
- Copy files using glob patterns. Sync, async, promise or streams. (node.js utility)☆94Updated 3 years ago
- Check if a path is a file, directory, or symlink☆80Updated last year
- Resolve the path of a module like `require.resolve()` but from the current working directory☆70Updated 4 years ago
- Replaces a file extension with another one.☆46Updated 2 years ago
- Import a module like with `require()` but from a given path☆85Updated 3 years ago
- Parse `.git/config` into a JavaScript object. sync or async.☆62Updated 7 years ago
- Get the set npm registry URL☆57Updated 8 months ago
- Import a globally installed module☆59Updated 2 years ago
- Get namespaced config from the closest package.json☆121Updated 2 years ago
- Get the auth token set for an npm registry☆34Updated last month
- Extract the username from a git remote origin URL.☆17Updated 7 years ago
- Check if a path exists☆155Updated 3 years ago
- Tests whether one path is inside another path☆43Updated 5 years ago
- Find the first file matching a given pattern in the current directory or the nearest ancestor directory.☆98Updated 2 years ago
- Return a copy of an object without the given keys.☆78Updated 5 years ago
- A list of directories you should ignore by default☆23Updated 3 years ago
- Get a formatted timestamp. Used in gulp, assemble, generate, and many others.☆110Updated 5 years ago
- Wait for any promise to be fulfilled☆56Updated 3 years ago
- Detect the dominant newline character of a string☆56Updated 2 years ago
- The cmd-shim used in npm☆78Updated last month
- Cache requires to be lazy-loaded when needed. Uses node's own require system with tried and true, plain-vanilla JavaScript getters.☆51Updated 2 years ago
- Convert an absolute path to tilde path: /Users/sindresorhus/dev => ~/dev☆96Updated 3 years ago
- Get locally or globally installation path of given package name.☆43Updated 3 years ago
- Locate a program or locally installed node module's executable☆78Updated 9 years ago
- recursively find the closest package.json☆47Updated 3 years ago
- Sanity check which files you are and aren't about to publish to npm☆85Updated 3 years ago
- Allows libraries to handle various caller provided asynchronous functions uniformly. Maps promises, observables, child processes and stre…☆71Updated 2 years ago
- ☆45Updated 3 years ago
- A replacement for process.exit that ensures stdio are fully drained before exiting.☆67Updated 10 months ago