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:
- Check if a path is a file, directory, or symlink☆78Updated last year
- Get the first path that exists on disk of multiple paths☆59Updated 2 years ago
- Check if a string matches the name of a Node.js builtin module☆59Updated 5 months ago
- Strip redundant indentation and indent the string☆54Updated 4 years ago
- Returns the directory used by NPM for globally installed NPM packages.☆35Updated 6 years ago
- Check if the character represented by a given Unicode code point is fullwidth☆49Updated last year
- Gracefully restore the CLI cursor on exit☆38Updated last year
- Check if your package was installed globally☆70Updated last year
- Ponyfill for Error#captureStackTrace☆61Updated 2 years ago
- Check if a value is a plain object☆102Updated last year
- Check if argv has a specific flag☆93Updated 4 years ago
- Get your PATH prepended with locally installed binaries☆105Updated 9 months ago
- Create a Vinyl file from an actual file☆41Updated 2 years ago
- Fill in a range of numbers or letters, positive or negative, optionally passing an increment or multiplier to use.☆58Updated last year
- Regular expression for matching reserved filename characters☆50Updated 3 years ago
- Get the visual width of the widest line in a string - the number of columns required to display it☆37Updated last year
- Get the directory of globally installed packages and binaries☆76Updated last year
- Write a package.json file☆88Updated 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…☆95Updated 2 years ago
- Start a promise chain☆58Updated 3 years ago
- Check if a value is an object☆40Updated 4 years ago
- A list of directories you should ignore by default☆23Updated 3 years ago
- Indent each line in a string☆113Updated 3 years ago
- Check if a file path is a binary file☆46Updated last year
- Import a module like with `require()` but from a given path☆85Updated 3 years ago
- Filter object keys and values into a new object☆103Updated last year
- Invert the key/value of an object. Example: {foo: 'bar'} → {bar: 'foo'}☆37Updated 3 years ago
- Strip the final newline character from a string/buffer☆36Updated 9 months ago
- Check if the process is running with elevated privileges☆41Updated 4 years ago
- Convert a file path to a file URL: `unicorn.jpg` → `file:///Users/sindresorhus/unicorn.jpg`☆61Updated last year