sindresorhus / invert-kv
Invert the key/value of an object. Example: {foo: 'bar'} → {bar: 'foo'}
☆36Updated 2 years ago
Related projects ⓘ
Alternatives and complementary repositories for invert-kv
- Strip redundant indentation and indent the string☆54Updated 3 years ago
- Strip the final newline character from a string/buffer☆35Updated 3 weeks ago
- Check if a path is inside another path☆37Updated 2 years ago
- Get the first path that exists on disk of multiple paths☆58Updated last year
- Check if a value is a regular expression☆24Updated 3 years ago
- Check if a path is a file, directory, or symlink☆75Updated 3 months ago
- Check if a file path is a binary file☆43Updated 6 months ago
- Check if your code is running as an npm or yarn script☆64Updated 3 years ago
- Get the version of a binary in semver format☆35Updated 7 months ago
- Extract the article title of a HTML document☆54Updated 2 years ago
- Slice a string with ANSI escape codes☆47Updated 6 months ago
- Check if your package was installed globally☆70Updated last year
- Check if argv has a specific flag☆94Updated 3 years ago
- Exit the process when the `esc` key is pressed☆57Updated 11 months ago
- Detect the dominant newline character of a string☆55Updated last year
- Gracefully restore the CLI cursor on exit☆35Updated 3 months ago
- Simple wildcard matching☆34Updated 3 years ago
- Check if your code is running in a JXA environment☆31Updated 3 years ago
- Turn an object into a string of HTML attributes☆49Updated last year
- Check if a value is an object☆40Updated 3 years ago
- Get the visual width of the widest line in a string - the number of columns required to display it☆36Updated last year
- Shorten GitHub links like GitHub shortens Issues and Commit links.☆81Updated last week
- Regular expression for matching issue references☆49Updated last month
- Ponyfill for Error#captureStackTrace☆61Updated 2 years ago
- Detect whether a terminal emulator supports hyperlinks☆54Updated 3 months ago
- Expands symbolic links and prints the resolved absolute filepath☆25Updated 6 months ago
- Get a random key from an object☆18Updated 4 months ago
- Get the directory of globally installed packages and binaries☆75Updated last year
- Prepend `https://` to humanized URLs like `sindresorhus.com` and `localhost`☆62Updated 3 years ago
- Node.js releases data☆36Updated last week