sindresorhus / detect-newlineLinks
Detect the dominant newline character of a string
☆56Updated 2 years ago
Alternatives and similar repositories for detect-newline
Users that are interested in detect-newline are comparing it to the libraries listed below
Sorting:
- Get the first path that exists on disk of multiple paths☆62Updated 3 months ago
- Check if a path is a file, directory, or symlink☆80Updated last year
- Regular expression for matching reserved filename characters☆52Updated 3 months ago
- Strip redundant indentation and indent the string☆55Updated 4 years ago
- Ponyfill for Error#captureStackTrace☆62Updated 3 years ago
- Check if a value is a plain object☆103Updated last year
- Gracefully restore the CLI cursor on exit☆40Updated last year
- Check if argv has a specific flag☆95Updated 4 years ago
- Check if the character represented by a given Unicode code point is fullwidth☆51Updated 3 months ago
- Check if a string matches the name of a Node.js builtin module☆62Updated 9 months ago
- Check if a file path is a binary file☆49Updated last year
- Get your PATH prepended with locally installed binaries☆106Updated last year
- Returns the directory used by NPM for globally installed NPM packages.☆35Updated 7 years ago
- Create a Vinyl file from an actual file☆43Updated 3 years ago
- Start a promise chain☆60Updated 3 months ago
- Filter object keys and values into a new object☆105Updated last year
- Easily handle defaults for your options☆76Updated 2 years ago
- Wordwrap a string with ANSI escape codes☆130Updated 3 months ago
- Check if your package was installed globally☆70Updated 2 years ago
- Get the visual width of the widest line in a string - the number of columns required to display it☆39Updated 2 years ago
- Indent each line in a string☆114Updated 3 years ago
- A module which will endeavor to guess your terminal's level of color support.☆23Updated 7 years ago
- Copy a file☆122Updated 4 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…☆95Updated 2 years ago
- Check if a value is an object☆42Updated 4 years ago
- Check whether a request can be retried based on the `error.code`☆82Updated 3 years ago
- Convert a file path to a file URL: `unicorn.jpg` → `file:///Users/sindresorhus/unicorn.jpg`☆63Updated last year
- Invert the key/value of an object. Example: {foo: 'bar'} → {bar: 'foo'}☆37Updated 3 years ago
- Create a MD5 hash with hex encoding☆47Updated 2 years ago
- Turn an object into a string of HTML attributes☆50Updated 2 years ago