sindresorhus / strip-indent
Strip leading whitespace from each line in a string
☆135Updated 3 years ago
Related projects ⓘ
Alternatives and complementary repositories for strip-indent
- Resolve the path of a module like require.resolve() but from a given path☆140Updated 3 years ago
- Indent each line in a string☆112Updated 2 years ago
- Find the closest package.json file☆159Updated last year
- Read the closest package.json file☆258Updated last year
- Convert a tilde path to an absolute path: ~/dev => /Users/sindresorhus/dev☆144Updated last year
- Get the path of the caller module☆64Updated 3 years ago
- Lazy number range generator☆82Updated 10 months ago
- Round a number to a specific number of decimal places: 1.234 → 1.2☆155Updated last year
- Get the gzipped size of a string or buffer☆171Updated 2 years ago
- Check if a value is a plain object☆102Updated 6 months ago
- Create and parse HTTP Content-Type header☆131Updated 4 months ago
- Reverse minimist. Convert an object of options into an array of command-line arguments☆184Updated last year
- Get a random temporary file path☆79Updated last year
- Check if something is a Node.js stream☆111Updated 3 weeks ago
- Import a module while bypassing the cache☆284Updated 5 months ago
- Toggle the CLI cursor☆103Updated 3 months ago
- Polyfill/shim for util.promisify in node versions < v8☆126Updated last year
- Wordwrap a string with ANSI escape codes☆120Updated last year
- normalizes package metadata, typically found in package.json file.☆196Updated last month
- Get the path of the parent module☆77Updated last year
- Sort the keys of an object☆101Updated 2 months ago
- Capitalize every word in string: unicorn cake → Unicorn Cake☆52Updated last year
- Detects if a file is binary in Node.js. Similar to Perl's -B☆165Updated 3 weeks ago
- Clear a module from the cache☆182Updated 3 years ago
- Finds the common standard cache directory☆151Updated 9 months ago
- Truncate a string to a specific width in the terminal☆86Updated last year
- Detect the indentation of code☆196Updated last year
- touch(1) for node☆122Updated 5 months ago
- The thing npm uses to read package.json files with semantics and defaults and validation and stuff☆224Updated 6 months ago
- Filter object keys and values into a new object☆100Updated 5 months ago