sindresorhus / strip-indent
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
- Indent each line in a string☆113Updated 2 years ago
- Lazy number range generator☆81Updated last year
- Convert a tilde path to an absolute path: ~/dev => /Users/sindresorhus/dev☆144Updated last year
- Reverse minimist. Convert an object of options into an array of command-line arguments☆185Updated 2 years ago
- Find the closest package.json file☆163Updated last year
- Get the path of the caller module☆64Updated 3 years ago
- Check whether a request can be retried based on the `error.code`☆80Updated 3 years ago
- Create and parse HTTP Content-Type header☆136Updated 9 months ago
- Resolve the path of a module like require.resolve() but from a given path☆141Updated 4 years ago
- Clear a module from the cache☆182Updated 3 years ago
- Write data to a random temporary file☆105Updated 8 months ago
- Check if a value is a plain object☆102Updated 11 months ago
- Make unhandled promise rejections fail hard right away instead of the default silent fail☆106Updated 2 years ago
- Finds the common standard cache directory☆158Updated 2 weeks ago
- Capitalize every word in string: unicorn cake → Unicorn Cake☆52Updated last year
- Wait for any promise to be fulfilled☆54Updated 2 years ago
- Wordwrap a string with ANSI escape codes☆123Updated last year
- Import a module like with `require()` but from the current working directory☆52Updated 2 years ago
- Ensures a value is a valid error by making it one if not☆77Updated 3 years ago
- Import a module while bypassing the cache☆284Updated 2 months 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…☆92Updated 2 years ago
- Get the real path of the system temp directory☆83Updated 2 years ago
- Check if a URL is absolute☆79Updated 3 years ago
- Check if your package was installed globally☆70Updated last year
- Conditional promise chains☆60Updated 4 years ago
- Read the closest package.json file☆267Updated last year
- Get the path of the parent module☆77Updated last year
- Toggle the CLI cursor☆107Updated 8 months ago
- Filter object keys and values into a new object☆101Updated 10 months ago
- Create an array without duplicates☆71Updated 3 years ago