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
- Ponyfill for Error#captureStackTrace☆61Updated 2 years ago
- Gracefully restore the CLI cursor on exit☆38Updated 7 months ago
- Check if a file path is a binary file☆44Updated 10 months ago
- 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 7 months ago
- Get the path of the caller module☆64Updated 3 years ago
- Check if your package was installed globally☆70Updated last year
- A module which will endeavor to guess your terminal's level of color support.☆24Updated 6 years ago
- Check if a string matches the name of a Node.js builtin module☆59Updated 3 weeks ago
- Break out of a promise chain☆23Updated 3 years ago
- Get your PATH prepended with locally installed binaries☆104Updated 4 months ago
- A list of directories you should ignore by default☆23Updated 2 years ago
- Check if the process is running with elevated privileges☆41Updated 3 years ago
- Check if a value is a plain object☆102Updated 10 months ago
- Regular expression for matching reserved filename characters☆50Updated 2 years ago
- Import a globally installed module☆58Updated last year
- Import a module like with `require()` but from a given path☆85Updated 2 years ago
- Write a package.json file☆88Updated 7 months ago
- Nested/recursive `.gitignore`/`.npmignore` parsing and filtering.☆61Updated 5 months ago
- Filter object keys and values into a new object☆101Updated 9 months ago
- Get the auth token set for an npm registry☆35Updated last month
- Turn an object into a string of HTML attributes☆49Updated last year
- Tests whether one path is inside another path☆41Updated 5 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
- Check if argv has a specific flag☆94Updated 3 years ago
- Check if your code is running as an npm or yarn script☆64Updated 3 years ago
- List of node.js builtin modules☆38Updated 11 months ago
- Fallback to a default if `process.stdout.getWindowSize` doesn't exist☆24Updated 8 months ago
- Run promise-returning & async functions repeatedly until you end it☆45Updated 3 years ago