sindresorhus / strip-indentLinks
Strip leading whitespace from each line in a string
☆137Updated 3 years ago
Alternatives and similar repositories for strip-indent
Users that are interested in strip-indent are comparing it to the libraries listed below
Sorting:
- Reverse minimist. Convert an object of options into an array of command-line arguments☆185Updated 2 years ago
- Find the closest package.json file☆164Updated 2 weeks ago
- 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…☆93Updated 2 years ago
- Truncate a string to a specific width in the terminal☆87Updated last year
- Read a package.json file☆169Updated last year
- Ensures a value is a valid error by making it one if not☆77Updated 3 years ago
- touch(1) for node☆124Updated last year
- Check if something is a Node.js stream☆112Updated 7 months ago
- Get the path of the caller module☆64Updated 3 years ago
- Indent each line in a string☆113Updated 3 years ago
- Wait for any promise to be fulfilled☆54Updated 2 years ago
- Get the path of the parent module☆77Updated last year
- Convert a tilde path to an absolute path: ~/dev => /Users/sindresorhus/dev☆145Updated 2 years ago
- Resolve the path of a module like require.resolve() but from a given path☆142Updated 4 years ago
- Reliable way to to get the height and width of the terminal/console in a node.js environment.☆84Updated 10 months ago
- Read the closest package.json file☆268Updated last year
- Convert a value to an array☆129Updated 3 years ago
- Write data to a random temporary file☆105Updated 10 months ago
- Create an array without duplicates☆71Updated 4 years ago
- Lazy number range generator☆81Updated last year
- Check if a URL is absolute☆79Updated 3 years ago
- Round a number to a specific number of decimal places: 1.234 → 1.2☆156Updated last year
- Check whether a request can be retried based on the `error.code`☆81Updated 3 years ago
- Make unhandled promise rejections fail hard right away instead of the default silent fail☆106Updated 2 years ago
- Compose promise-returning & async functions into a reusable pipeline☆123Updated 4 years ago
- Reliably get the terminal window size☆141Updated last year
- Check if your package was installed globally☆70Updated last year
- Check if argv has a specific flag☆95Updated 3 years ago
- Wordwrap a string with ANSI escape codes☆125Updated last year
- Toggle the CLI cursor☆108Updated 10 months ago