sindresorhus / strip-indent
Strip leading whitespace from each line in a string
☆136Updated 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
- Find the closest package.json file☆162Updated last year
- Reverse minimist. Convert an object of options into an array of command-line arguments☆185Updated 2 years ago
- Resolve the path of a module like require.resolve() but from a given path☆140Updated 4 years ago
- Read the closest package.json file☆266Updated last year
- Check if your package was installed globally☆70Updated last year
- Lazy number range generator☆81Updated last year
- Get a random temporary file path☆79Updated 2 years ago
- Write data to a random temporary file☆105Updated 8 months ago
- Wordwrap a string with ANSI escape codes☆124Updated last year
- Get the path of the caller module☆64Updated 3 years ago
- Convert a tilde path to an absolute path: ~/dev => /Users/sindresorhus/dev☆144Updated last year
- Get the path of the parent module☆77Updated last year
- Get the gzipped size of a string or buffer☆171Updated 3 years ago
- Import a module like with `require()` but from a given path☆85Updated 2 years ago
- Ensures a value is a valid error by making it one if not☆77Updated 3 years ago
- Wait for any promise to be fulfilled☆54Updated 2 years ago
- Finds the common standard cache directory☆158Updated last year
- Clear a module from the cache☆181Updated 3 years ago
- Compose promise-returning & async functions into a reusable pipeline☆122Updated 3 years ago
- Create and parse HTTP Content-Type header☆134Updated 8 months ago
- Read a package.json file☆165Updated last year
- Simplified high resolution timing☆79Updated 6 months ago
- Sort the keys of an object☆102Updated 6 months ago
- Resolve the path of a module like `require.resolve()` but from the current working directory☆68Updated 4 years ago
- Create a hash for file revving☆105Updated last year
- Parse milliseconds into an object☆119Updated 10 months ago
- Check if a value is a plain object☆102Updated 10 months ago
- Check if argv has a specific flag☆94Updated 3 years ago
- Filter object keys and values into a new object☆101Updated 10 months ago