sindresorhus / detect-newlineLinks
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
Sorting:
- Ponyfill for Error#captureStackTrace☆61Updated 2 years 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 10 months ago
- Strip redundant indentation and indent the string☆54Updated 4 years ago
- Get the path of the caller module☆64Updated 3 years ago
- Check if a file path is a binary file☆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
- Check if a value is a plain object☆102Updated last year
- Write a package.json file☆88Updated 10 months ago
- Get namespaced config from the closest package.json☆121Updated last year
- Check if your package was installed globally☆70Updated last year
- Regular expression for matching reserved filename characters☆50Updated 2 years ago
- Check if your code is running as an npm or yarn script☆64Updated 3 years ago
- Easily handle defaults for your options☆74Updated last year
- Gracefully restore the CLI cursor on exit☆38Updated 10 months ago
- Tests whether one path is inside another path☆41Updated 5 years ago
- Import a globally installed module☆58Updated last year
- Check if a string matches the name of a Node.js builtin module☆59Updated 3 months ago
- Check if argv has a specific flag☆95Updated 3 years ago
- Get the directory of globally installed packages and binaries☆76Updated last year
- Break out of a promise chain☆23Updated 4 years ago
- Get the path of the parent module☆77Updated last year
- Convert a file path to a file URL: `unicorn.jpg` → `file:///Users/sindresorhus/unicorn.jpg`☆61Updated last year
- Resolve the path of a module like `require.resolve()` but from the current working directory☆68Updated 4 years ago
- Start a promise chain☆58Updated 3 years ago
- Import a module like with `require()` but from a given path☆85Updated 2 years ago
- Create a MD5 hash with hex encoding☆45Updated last year
- Get the auth token set for an npm registry☆35Updated 4 months ago
- Turn an object into a string of HTML attributes☆49Updated 2 years ago
- Nested/recursive `.gitignore`/`.npmignore` parsing and filtering.☆63Updated last month