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
- Reverse minimist. Convert an object of options into an array of command-line arguments☆185Updated 2 years ago
- Find the closest package.json file☆162Updated last year
- Detect the dominant newline character of a string☆55Updated last year
- Read a package.json file☆165Updated last year
- Let a globally installed package use a locally installed version of itself if available☆154Updated 7 months ago
- Get the gzipped size of a string or buffer☆171Updated 3 years ago
- Check if a value is a plain object☆102Updated 10 months ago
- Find the root directory of a Node.js project or npm package☆240Updated last year
- Finds the common standard cache directory☆158Updated last year
- Write a package.json file☆88Updated 7 months ago
- Convert a value to an array☆129Updated 3 years ago
- Truncate a string to a specific width in the terminal☆87Updated last year
- Check if your package was installed globally☆70Updated last year
- Detects if a file is binary in Node.js. Similar to Perl's -B☆165Updated 4 months ago
- Normalize file path slashes to be unix-like forward slashes. Used by chokidar, anymatch, and many others!☆110Updated 2 years ago
- Strip leading whitespace from each line in a string☆136Updated 3 years ago
- when you want to fire an event no matter how a process exits.☆190Updated last year
- Get metadata of a package from the npm registry☆240Updated 8 months ago
- Easily handle defaults for your options☆73Updated last year
- Reliably get the terminal window size☆141Updated last year
- Check if argv has a specific flag☆94Updated 3 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…☆92Updated 2 years ago
- Indent each line in a string☆113Updated 2 years ago
- Create an error from multiple errors☆245Updated last year
- Resolve the path of a module like require.resolve() but from a given path☆140Updated 4 years ago
- Check if stdout or stderr is interactive☆116Updated last year
- JavaScript option parsing and help generation library☆162Updated 10 months ago
- Get an unused filename by appending a number if it exists: `file.txt` → `file (1).txt`☆140Updated 2 years ago
- Import a globally installed module☆58Updated last year
- Ponyfill for Error#captureStackTrace☆61Updated 2 years ago