sindresorhus / strip-path
Strip a path from a path
☆16Updated 3 years ago
Related projects ⓘ
Alternatives and complementary repositories for strip-path
- Truncate a semver version: 1.2.3 → 1.2.0☆17Updated 2 years ago
- Convert matching single-quotes to double-quotes: `I 'love' unicorns` → `I "love" unicorns`☆22Updated 2 years ago
- Parse/stringify contact info like `Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)`☆34Updated 3 years ago
- Get the system default UID☆11Updated last year
- Get the URL from a web shortcut file☆13Updated 3 years ago
- Check if a filepath is a Markdown file☆20Updated 3 years ago
- Modify the keys of an object☆15Updated 3 years ago
- Gracefully restore the CLI cursor on exit☆35Updated 3 months ago
- Get all emails in a text file or stdin☆24Updated 3 years ago
- Strip the final newline character from a string/buffer☆35Updated 3 weeks ago
- Modify the values of an object☆28Updated 3 years ago
- Find the root directory of a Node.js project or npm package☆24Updated last year
- Get a random property from an object☆15Updated 4 months ago
- Find semver versions in a string: `unicorn v1.2.3` → `1.2.3`☆18Updated 7 months ago
- Check if a value is a regular expression☆24Updated 3 years ago
- Turn an object into a string of HTML attributes☆49Updated last year
- Prepend `https://` to humanized URLs like `sindresorhus.com` and `file://` to file paths☆24Updated 2 years ago
- Strip shebang (eg. #!/bin/sh) from a string☆11Updated 3 years ago
- Sort an array of numbers☆16Updated 3 years ago
- Convert matching double-quotes to single-quotes: `I "love" unicorns` → `I 'love' unicorns`☆55Updated 2 years ago
- Check if a file path is a text file☆16Updated 6 months ago
- Check if your code is running in a JXA environment☆31Updated 3 years ago
- Parse and stringify file paths with line and column like `unicorn.js14`☆21Updated 3 years ago
- Trim newlines from the start and/or end of a string☆48Updated last year
- Strip the authentication part of a URL☆17Updated 2 years ago
- Get the version of a binary in semver format☆35Updated 7 months ago
- Check if a value is an error constructor☆13Updated 3 years ago
- Prepend `<br>` to newlines in a string☆12Updated 3 years ago
- Get the passwd user entry from a username or uid☆29Updated 2 years ago
- Get the first path that exists on disk of multiple paths☆58Updated last year