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
- Check if a file path is a binary file☆44Updated 10 months ago
- Ponyfill for Error#captureStackTrace☆61Updated 2 years ago
- Strip redundant indentation and indent the string☆54Updated 3 years ago
- Check if a path is a file, directory, or symlink☆78Updated 7 months ago
- Check if a string matches the name of a Node.js builtin module☆59Updated 2 weeks ago
- Break out of a promise chain☆23Updated 3 years ago
- Gracefully restore the CLI cursor on exit☆37Updated 7 months ago
- Get the first path that exists on disk of multiple paths☆58Updated 2 years ago
- Import a globally installed module☆57Updated last year
- The Node.js `util.deprecate()` function with browser support☆38Updated 6 years ago
- A module which will endeavor to guess your terminal's level of color support.☆24Updated 6 years ago
- Get the directory of globally installed packages and binaries☆75Updated last year
- Nested/recursive `.gitignore`/`.npmignore` parsing and filtering.☆61Updated 5 months ago
- Fallback to a default if `process.stdout.getWindowSize` doesn't exist☆24Updated 8 months ago
- Regular expression for matching reserved filename characters☆50Updated 2 years ago
- Get the visual width of the widest line in a string - the number of columns required to display it☆37Updated last year
- Write a package.json file☆88Updated 7 months ago
- Filter object keys and values into a new object☆101Updated 9 months ago
- Import a module like with `require()` but from a given path☆85Updated 2 years ago
- Check if your package was installed globally☆70Updated last year
- Define multiple non-enumerable properties at once. Uses `Object.defineProperty` when available; falls back to standard assignment in olde…☆21Updated 7 months ago
- Expands symbolic links and prints the resolved absolute filepath☆26Updated 10 months ago
- Cascading, controlled-visibility options object management.☆40Updated 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
- List of node.js builtin modules☆38Updated 11 months ago
- Get the path of the caller module☆64Updated 3 years ago
- Check if the process is running with elevated privileges☆41Updated 3 years ago
- A better `Promise.race()`☆46Updated 2 years ago
- Run promise-returning & async functions repeatedly until you end it☆45Updated 3 years ago
- Turn an object into a string of HTML attributes☆49Updated last year