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
- Find the closest package.json file☆162Updated last year
- Resolve the path of a module like require.resolve() but from a given path☆140Updated 4 years 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…☆91Updated 2 years ago
- Check if a value is a plain object☆102Updated 8 months ago
- Get the gzipped size of a string or buffer☆171Updated 3 years ago
- Lazy number range generator☆82Updated last year
- Wordwrap a string with ANSI escape codes☆120Updated last year
- Detects if a file is binary in Node.js. Similar to Perl's -B☆165Updated 3 months ago
- Get the path of the caller module☆64Updated 3 years ago
- Create and parse HTTP Content-Type header☆133Updated 6 months ago
- Check if something is a Node.js stream☆110Updated 3 months ago
- Reverse minimist. Convert an object of options into an array of command-line arguments☆185Updated last year
- Check if your package was installed globally☆70Updated last year
- Wait for any promise to be fulfilled☆55Updated 2 years ago
- Compose promise-returning & async functions into a reusable pipeline☆122Updated 3 years ago
- Like findup-sync, but 2-4x faster and supports XDG-style `.config/` directories.☆41Updated 4 years ago
- Finds the common standard cache directory☆158Updated 11 months ago
- Clear a module from the cache☆181Updated 3 years ago
- Read the closest package.json file☆264Updated last year
- Convert a value to an array☆130Updated 3 years ago
- Indent each line in a string☆113Updated 2 years ago
- Require global npm as a local node module.☆32Updated 2 years ago
- Map over promises serially☆48Updated 3 years ago
- Resolve the path of a module like `require.resolve()` but from the current working directory☆68Updated 4 years ago
- Easy error subclassing and stack customization☆66Updated 4 years ago
- Find the root directory of a Node.js project or npm package☆239Updated last year
- Get the path of the parent module☆77Updated last year
- [OBSOLUTE] Concatenate a readable stream's data into a single array.☆100Updated 4 months ago
- Read a package.json file☆166Updated last year
- Get the real path of the system temp directory☆83Updated 2 years ago