sindresorhus / strip-indentLinks
Strip leading whitespace from each line in a string
☆142Updated last week
Alternatives and similar repositories for strip-indent
Users that are interested in strip-indent are comparing it to the libraries listed below
Sorting:
- Indent each line in a string☆113Updated 3 years ago
- Convert a tilde path to an absolute path: ~/dev => /Users/sindresorhus/dev☆144Updated last month
- Find the closest package.json file☆165Updated 4 months ago
- Reverse minimist. Convert an object of options into an array of command-line arguments☆185Updated 2 years ago
- Convert a value to an array☆131Updated 3 years ago
- A static list of the Node.js builtin modules from the latest Node.js version☆124Updated last month
- Check if a value is a plain object☆103Updated last year
- Toggle the CLI cursor☆112Updated last year
- Write data to a random temporary file☆107Updated last year
- Get a random temporary file path☆80Updated 2 years ago
- Wordwrap a string with ANSI escape codes☆129Updated last month
- Lazy number range generator☆82Updated last year
- Compose promise-returning & async functions into a reusable pipeline☆124Updated 4 years ago
- Check if a URL is absolute☆80Updated last month
- Get the path of the parent module☆78Updated last month
- Check whether a request can be retried based on the `error.code`☆81Updated 3 years ago
- Check if your package was installed globally☆69Updated last year
- Truncate a string to a specific width in the terminal☆87Updated last month
- Round a number to a specific number of decimal places: 1.234 → 1.2☆160Updated last month
- Get the latest version of an npm package☆175Updated last year
- Get the diff type of two semver versions: 0.0.1 0.0.2 → patch☆69Updated last month
- If you use globs, this will make your code faster. Returns `true` if the given string looks like a glob pattern or an extglob pattern. Th…☆95Updated 2 years ago
- Check if argv has a specific flag☆94Updated 4 years ago
- Resolve the path of a module like require.resolve() but from a given path☆143Updated 4 years ago
- Parse a Github URL into an object. Supports a wide variety of GitHub URL formats.☆125Updated last year
- Filter object keys and values into a new object☆104Updated last year
- Conditional promise chains☆63Updated 4 years ago
- Get the real path of the system temp directory☆82Updated 3 years ago
- Ensures a value is a valid error by making it one if not☆79Updated last month
- Wait for any promise to be fulfilled☆56Updated 3 years ago