sindresorhus / detect-newline
Detect the dominant newline character of a string
☆55Updated last year
Alternatives and similar repositories for detect-newline:
Users that are interested in detect-newline are comparing it to the libraries listed below
- Ponyfill for Error#captureStackTrace☆61Updated 2 years ago
- Get the first path that exists on disk of multiple paths☆58Updated 2 years ago
- Strip redundant indentation and indent the string☆54Updated 4 years ago
- Check if a path is a file, directory, or symlink☆78Updated 9 months ago
- A module which will endeavor to guess your terminal's level of color support.☆24Updated 6 years ago
- Import a globally installed module☆58Updated last year
- Nested/recursive `.gitignore`/`.npmignore` parsing and filtering.☆62Updated last week
- Check if your code is running as an npm or yarn script☆64Updated 3 years ago
- Get the path of the caller module☆64Updated 3 years ago
- Gracefully restore the CLI cursor on exit☆38Updated 9 months ago
- Check if your package was installed globally☆70Updated last year
- Check if a file path is a binary file☆44Updated last year
- Regular expression for matching reserved filename characters☆50Updated 2 years ago
- Check if a string matches the name of a Node.js builtin module☆59Updated 2 months ago
- The Node.js `util.deprecate()` function with browser support☆38Updated 6 years ago
- Fallback to a default if `process.stdout.getWindowSize` doesn't exist☆24Updated 10 months ago
- Check if the process is running with elevated privileges☆41Updated 3 years ago
- Take a list of glob patterns and return an array of file locations, respecting `.gitignore` and allowing for ignore patterns via `packag…☆40Updated last year
- Returns the directory used by NPM for globally installed NPM packages.☆35Updated 6 years ago
- Import a module like with `require()` but from the current working directory☆52Updated 2 years ago
- Convert an absolute path to tilde path: /Users/sindresorhus/dev => ~/dev☆93Updated 2 years ago
- Get namespaced config from the closest package.json☆121Updated last year
- Import a module like with `require()` but from a given path☆86Updated 2 years ago
- Get your PATH prepended with locally installed binaries☆104Updated 6 months ago
- Create a MD5 hash with hex encoding☆45Updated 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…☆93Updated 2 years ago
- Resolve the path of a module like `require.resolve()` but from the current working directory☆68Updated 4 years ago
- List of node.js builtin modules☆38Updated last year
- Filter object keys and values into a new object☆101Updated 11 months ago
- Break out of a promise chain☆23Updated 4 years ago