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
- Check whether a request can be retried based on the `error.code`☆80Updated 3 years ago
- Indent each line in a string☆113Updated 2 years ago
- Reverse minimist. Convert an object of options into an array of command-line arguments☆185Updated 2 years ago
- Lazy number range generator☆81Updated last year
- Compose promise-returning & async functions into a reusable pipeline☆122Updated 3 years ago
- Check if your package was installed globally☆70Updated last year
- Check if a value is a plain object☆102Updated 9 months ago
- Import a module while bypassing the cache☆283Updated last month
- Detects if a file is binary in Node.js. Similar to Perl's -B☆164Updated 4 months ago
- Capitalize every word in string: unicorn cake → Unicorn Cake☆52Updated last year
- Resolve the path of a module like require.resolve() but from a given path☆140Updated 4 years ago
- Get the gzipped size of a string or buffer☆171Updated 3 years ago
- Reliable way to to get the height and width of the terminal/console in a node.js environment.☆83Updated 6 months ago
- Write data to a random temporary file☆105Updated 7 months ago
- Write a package.json file☆89Updated 7 months ago
- Conditional promise chains☆60Updated 3 years ago
- Read a package.json file☆166Updated last year
- Get a random temporary file path☆79Updated 2 years ago
- Filter object keys and values into a new object☆101Updated 9 months ago
- Get the path of the caller module☆64Updated 3 years ago
- Round a number to a specific number of decimal places: 1.234 → 1.2☆155Updated last year
- Start a promise chain☆58Updated 3 years ago
- Resolve the path of a module like `require.resolve()` but from the current working directory☆68Updated 4 years ago
- Get the path of the parent module☆77Updated last year
- Create and parse HTTP Content-Type header☆134Updated 7 months ago
- Find the root directory of a Node.js project or npm package☆240Updated last year
- Convert a value to an array☆130Updated 3 years ago
- Reliably get the terminal window size☆141Updated last year
- Import a module like with `require()` but from a given path☆85Updated 2 years ago