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 6 years ago
- Parse `.git/config` into a JavaScript object. sync or async.☆62Updated 6 years ago
- Resolve the path of a module like `require.resolve()` but from the current working directory☆69Updated 4 years ago
- Check if a path is a file, directory, or symlink☆79Updated last year
- Import a module like with `require()` but from a given path☆85Updated 3 years ago
- Find the first file matching a given pattern in the current directory or the nearest ancestor directory.☆98Updated last year
- Import a globally installed module☆57Updated last year
- Replaces a file extension with another one.☆46Updated 2 years ago
- Detect the dominant newline character of a string☆56Updated 2 years ago
- Return a copy of an object without the given keys.☆78Updated 4 years ago
- Get the set npm registry URL☆56Updated 5 months ago
- Reverse minimist. Convert an object of options into an array of command-line arguments☆185Updated 2 years ago
- Strip UTF-8 byte order mark (BOM) from a string☆111Updated 4 years ago
- Get a formatted timestamp. Used in gulp, assemble, generate, and many others.☆110Updated 4 years ago
- Wait for any promise to be fulfilled☆56Updated 3 years ago
- Parse the things that can be arguments to `npm install`☆131Updated last week
- Clean and beautiful options for minimist☆53Updated 3 years ago
- Offers convenient getters and setters for the fs.stat()'s `mode`☆50Updated 5 years ago
- ☆45Updated 3 years ago
- Get namespaced config from the closest package.json☆120Updated last year
- Recursively flatten an array or arrays. This is the fastest implementation of array flatten.☆59Updated 3 years ago
- Repeat the given string n times. Fastest implementation for repeating a string (2x faster than the native method)☆50Updated 3 years ago
- Extract the username from a git remote origin URL.☆17Updated 7 years ago
- Convert an absolute path to tilde path: /Users/sindresorhus/dev => ~/dev☆95Updated 3 years ago
- Copy files using glob patterns. Sync, async, promise or streams. (node.js utility)☆94Updated 3 years ago
- Split lines into an array of lines☆45Updated last year
- Get your PATH prepended with locally installed binaries☆104Updated 11 months ago
- Get the auth token set for an npm registry☆34Updated 2 months ago
- Get the directory of globally installed packages and binaries☆76Updated last year
- Fast, minimal glob matcher for node.js. Similar to micromatch, minimatch and multimatch, but without support for extended globs (extglobs…☆97Updated 2 years ago