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
- Strip redundant indentation and indent the string☆54Updated 3 years ago
- Get the path of the caller module☆64Updated 3 years ago
- Gracefully restore the CLI cursor on exit☆38Updated 8 months ago
- Get the first path that exists on disk of multiple paths☆58Updated 2 years ago
- Ponyfill for Error#captureStackTrace☆61Updated 2 years ago
- Check if a path is a file, directory, or symlink☆78Updated 8 months ago
- Get the auth token set for an npm registry☆35Updated 2 months ago
- Import a globally installed module☆58Updated last year
- Check if a string matches the name of a Node.js builtin module☆59Updated last month
- Check if the process is running with elevated privileges☆41Updated 3 years ago
- Break out of a promise chain☆23Updated 4 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
- A list of directories you should ignore by default☆23Updated 2 years ago
- Check if a file path is a binary file☆44Updated 11 months ago
- The Node.js `util.deprecate()` function with browser support☆38Updated 6 years ago
- A better `Promise.race()`☆46Updated 2 years ago
- Nested/recursive `.gitignore`/`.npmignore` parsing and filtering.☆62Updated this week
- A module which will endeavor to guess your terminal's level of color support.☆24Updated 6 years ago
- Returns the directory used by NPM for globally installed NPM packages.☆35Updated 6 years ago
- Filter object keys and values into a new object☆101Updated 10 months ago
- Get your PATH prepended with locally installed binaries☆104Updated 5 months 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
- Check if your code is running as an npm or yarn script☆64Updated 3 years ago
- Regular expression for matching reserved filename characters☆50Updated 2 years ago
- Expands symbolic links and prints the resolved absolute filepath☆26Updated 11 months ago
- Check if a value is a plain object☆102Updated 11 months ago
- Check if the character represented by a given Unicode code point is fullwidth☆49Updated last year
- Check if your package was installed globally☆70Updated last year
- Write a package.json file☆88Updated 8 months ago
- Get the directory of globally installed packages and binaries☆75Updated last year