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
- Check if a file path is a binary file☆44Updated 9 months ago
- Check if the process is running with elevated privileges☆40Updated 3 years ago
- Ponyfill for Error#captureStackTrace☆61Updated 2 years ago
- Write a package.json file☆89Updated 6 months ago
- Import a globally installed module☆57Updated last year
- Break out of a promise chain☆23Updated 3 years ago
- Check if your package was installed globally☆70Updated last year
- Get the first path that exists on disk of multiple paths☆58Updated 2 years ago
- Check if a path is a file, directory, or symlink☆78Updated 6 months ago
- Get the path of the caller module☆64Updated 3 years ago
- Check if a string matches the name of a Node.js builtin module☆58Updated 9 months ago
- The Node.js `util.deprecate()` function with browser support☆38Updated 6 years ago
- Get your PATH prepended with locally installed binaries☆104Updated 3 months ago
- Tests whether one path is inside another path☆41Updated 4 years ago
- A better `Promise.race()`☆46Updated 2 years ago
- Nested/recursive `.gitignore`/`.npmignore` parsing and filtering.☆58Updated 4 months ago
- Check if your code is running as an npm or yarn script☆64Updated 3 years ago
- Filter object keys and values into a new object☆101Updated 8 months ago
- List of node.js builtin modules☆38Updated 10 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…☆91Updated 2 years ago
- Check if a value is a plain object☆102Updated 9 months ago
- Gracefully restore the CLI cursor on exit☆36Updated 6 months ago
- Create a MD5 hash with hex encoding☆45Updated last year
- Import a module like with `require()` but from the current working directory☆52Updated 2 years ago
- A module which will endeavor to guess your terminal's level of color support.☆24Updated 6 years ago
- Check whether a request can be retried based on the `error.code`☆79Updated 3 years ago
- A list of directories you should ignore by default☆23Updated 2 years ago
- Get the directory of globally installed packages and binaries☆75Updated last year
- Returns the directory used by NPM for globally installed NPM packages.☆35Updated 6 years ago