sindresorhus / indent-string
Indent each line in a string
☆113Updated 2 years ago
Alternatives and similar repositories for indent-string:
Users that are interested in indent-string are comparing it to the libraries listed below
- Truncate a string to a specific width in the terminal☆87Updated last year
- Lazy number range generator☆81Updated last year
- Ensures a value is a valid error by making it one if not☆77Updated 3 years ago
- Get namespaced config from the closest package.json☆121Updated last year
- Get the path of the caller module☆64Updated 3 years ago
- Check if a path is a file, directory, or symlink☆78Updated 8 months ago
- Wait for any promise to be fulfilled☆54Updated 2 years ago
- Check if a value is a plain object☆102Updated 11 months ago
- Get the first path that exists on disk of multiple paths☆58Updated 2 years ago
- Check if your package was installed globally☆70Updated last year
- Make a function mimic another one☆94Updated 5 months ago
- Detect the dominant newline character of a string☆55Updated last year
- Conditional promise chains☆60Updated 4 years ago
- Get the directory of globally installed packages and binaries☆75Updated last year
- Check if your code is running as an npm or yarn script☆64Updated 3 years ago
- Strip redundant indentation and indent the string☆54Updated 3 years ago
- Reverse minimist. Convert an object of options into an array of command-line arguments☆185Updated 2 years ago
- Tests whether one path is inside another path☆41Updated 5 years ago
- Exit the process when the `esc` key is pressed☆56Updated last year
- Toggle the CLI cursor☆107Updated 8 months ago
- Easy error subclassing and stack customization☆65Updated 4 years ago
- Find multiple RegExp matches in a string☆92Updated 2 years ago
- Import a module like with `require()` but from a given path☆85Updated 2 years ago
- Check if a string matches the name of a Node.js builtin module☆59Updated last month
- Get the path of the parent module☆77Updated last year
- Take a list of glob patterns and return an array of file locations, respecting `.gitignore` and allowing for ignore patterns via `packag…☆40Updated last year
- Check if the process is running with elevated privileges☆41Updated 3 years ago
- Capitalize every word in string: unicorn cake → Unicorn Cake☆52Updated last year
- Get PID from a port☆79Updated 4 years ago
- Create a lazily evaluated value☆69Updated 4 years ago