sindresorhus / detect-indent
Detect the indentation of code
☆196Updated last year
Alternatives and similar repositories for detect-indent:
Users that are interested in detect-indent are comparing it to the libraries listed below
- Find the closest package.json file☆162Updated last year
- Detect the dominant newline character of a string☆55Updated last year
- Reverse minimist. Convert an object of options into an array of command-line arguments☆185Updated 2 years ago
- Find the root directory of a Node.js project or npm package☆240Updated last year
- Get an unused filename by appending a number if it exists: `file.txt` → `file (1).txt`☆140Updated 3 years ago
- when you want to fire an event no matter how a process exits.☆191Updated last year
- Read a package.json file☆165Updated last year
- Get the gzipped size of a string or buffer☆171Updated 3 years ago
- Detects if a file is binary in Node.js. Similar to Perl's -B☆165Updated 5 months ago
- Strip leading whitespace from each line in a string☆137Updated 3 years ago
- Create an error from multiple errors☆245Updated last year
- Let a globally installed package use a locally installed version of itself if available☆154Updated 8 months ago
- Get metadata of a package from the npm registry☆240Updated 9 months ago
- normalizes package metadata, typically found in package.json file.☆200Updated this week
- Reliably get the terminal window size☆141Updated last year
- Check if your package was installed globally☆70Updated last year
- Indent each line in a string☆113Updated 2 years ago
- Extends minimatch.match() with support for multiple patterns☆301Updated last year
- 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
- Write a package.json file☆88Updated 8 months ago
- Truncate a string to a specific width in the terminal☆87Updated last year
- A proxy to `path`, replacing `\` with `/` for all results & methods to add, change, default, trim file extensions.☆153Updated last year
- Finds the common standard cache directory☆158Updated this week
- Reliable way to to get the height and width of the terminal/console in a node.js environment.☆83Updated 8 months ago
- Check if argv has a specific flag☆95Updated 3 years ago
- Normalize file path slashes to be unix-like forward slashes. Used by chokidar, anymatch, and many others!☆110Updated 2 years ago
- node module to check if a command-line command exists☆144Updated 2 years ago
- Parse the things that can be arguments to `npm install`☆130Updated 2 months ago
- Convert a glob to a regular expression☆150Updated 5 years ago
- Get your PATH prepended with locally installed binaries☆104Updated 5 months ago