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
- Check if your package was installed globally☆70Updated last year
- Lazy number range generator☆82Updated last year
- Ensures a value is a valid error by making it one if not☆78Updated 2 years ago
- Truncate a string to a specific width in the terminal☆86Updated last year
- 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 value is a plain object☆102Updated 8 months ago
- Detect the dominant newline character of a string☆55Updated last year
- Check if a path is a file, directory, or symlink☆78Updated 6 months ago
- Wait for any promise to be fulfilled☆55Updated 2 years ago
- Check if a string matches the name of a Node.js builtin module☆58Updated 9 months ago
- Make a function mimic another one☆94Updated 3 months ago
- 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
- Start a promise chain☆58Updated 3 years ago
- Easily format the time from node.js `process.hrtime`. Works with timescales ranging from weeks to nanoseconds.☆52Updated 5 years ago
- Tests whether one path is inside another path☆41Updated 4 years ago
- Get the real path of the system temp directory☆83Updated 2 years ago
- Check if something is a Node.js stream☆110Updated 3 months ago
- Strip redundant indentation and indent the string☆54Updated 3 years ago
- Exit the process when the `esc` key is pressed☆56Updated last year
- Wordwrap a string with ANSI escape codes☆120Updated last year
- Get the first path that exists on disk of multiple paths☆58Updated last year
- Run promise-returning & async functions repeatedly until you end it☆45Updated 3 years ago
- Import a module like with `require()` but from the current working directory☆52Updated 2 years ago
- Ponyfill for Error#captureStackTrace☆61Updated 2 years ago
- Reverse minimist. Convert an object of options into an array of command-line arguments☆185Updated last year
- Check if argv has a specific flag☆94Updated 3 years ago
- Find multiple RegExp matches in a string☆92Updated 2 years ago
- Check if a file path is a binary file☆44Updated 9 months ago
- A better `Promise.race()`☆46Updated 2 years ago