sindresorhus / indent-stringLinks
Indent each line in a string
☆113Updated 3 years ago
Alternatives and similar repositories for indent-string
Users that are interested in indent-string are comparing it to the libraries listed below
Sorting:
- Ensures a value is a valid error by making it one if not☆78Updated 2 weeks ago
- Check if your package was installed globally☆70Updated last year
- Get namespaced config from the closest package.json☆120Updated last year
- Create a hash for file revving☆105Updated last year
- Truncate a string to a specific width in the terminal☆87Updated 2 weeks ago
- Check if a value is a plain object☆102Updated last year
- Check if a path is a file, directory, or symlink☆78Updated last year
- Lazy number range generator☆81Updated last year
- Exit the process when the `esc` key is pressed☆56Updated last year
- Check if a string matches the name of a Node.js builtin module☆61Updated 7 months ago
- Get your PATH prepended with locally installed binaries☆105Updated 11 months ago
- Get the path of the caller module☆65Updated 3 years ago
- Detect the dominant newline character of a string☆55Updated 2 years ago
- Strip leading whitespace from each line in a string☆142Updated 3 weeks ago
- Get the directory of globally installed packages and binaries☆76Updated last year
- Find multiple RegExp matches in a string☆90Updated 3 years ago
- Wordwrap a string with ANSI escape codes☆128Updated 3 weeks ago
- Import a module like with `require()` but from a given path☆85Updated 3 years ago
- Strip redundant indentation and indent the string☆54Updated 4 years ago
- Get the first path that exists on disk of multiple paths☆59Updated 2 weeks ago
- Create a lazily evaluated value☆69Updated 4 years ago
- Filter object keys and values into a new object☆104Updated last year
- Copy a file☆121Updated last month
- Round a number to a specific number of decimal places: 1.234 → 1.2☆160Updated 2 weeks ago
- Check if argv has a specific flag☆93Updated 4 years ago
- Reverse minimist. Convert an object of options into an array of command-line arguments☆184Updated 2 years ago
- Check if your code is running as an npm or yarn script☆64Updated 3 weeks ago
- Wait for any promise to be fulfilled☆54Updated 3 years ago
- A better `Promise.race()`☆46Updated 2 years ago
- A replacement for process.exit that ensures stdio are fully drained before exiting.☆67Updated 7 months ago