sindresorhus / detect-newlineLinks
Detect the dominant newline character of a string
☆55Updated 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:
- 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 last week
- Strip redundant indentation and indent the string☆54Updated 4 years ago
- Check if a string matches the name of a Node.js builtin module☆61Updated 7 months ago
- Get your PATH prepended with locally installed binaries☆105Updated 11 months ago
- Indent each line in a string☆113Updated 3 years ago
- Check if your package was installed globally☆70Updated last year
- Returns the directory used by NPM for globally installed NPM packages.☆35Updated 6 years ago
- Ponyfill for Error#captureStackTrace☆61Updated 2 years ago
- Check if argv has a specific flag☆93Updated 4 years ago
- Filter object keys and values into a new object☆104Updated last year
- Check if a value is a plain object☆102Updated last year
- Check if the character represented by a given Unicode code point is fullwidth☆49Updated 3 weeks ago
- Gracefully restore the CLI cursor on exit☆39Updated last year
- Check if a file path is a binary file☆46Updated last year
- Create a Vinyl file from an actual file☆41Updated 2 years ago
- Check if a value is an object☆40Updated 4 years ago
- A module which will endeavor to guess your terminal's level of color support.☆23Updated 6 years ago
- Easily handle defaults for your options☆75Updated last year
- Get the directory of globally installed packages and binaries☆76Updated last year
- Get the visual width of the widest line in a string - the number of columns required to display it☆38Updated last year
- Invert the key/value of an object. Example: {foo: 'bar'} → {bar: 'foo'}☆37Updated 3 years ago
- Start a promise chain☆58Updated last week
- Get the path of the caller module☆65Updated 3 years ago
- Wordwrap a string with ANSI escape codes☆128Updated 2 weeks ago
- Regular expression for matching reserved filename characters☆50Updated 2 weeks ago
- Check if your code is running as an npm or yarn script☆64Updated 2 weeks ago
- A list of directories you should ignore by default☆23Updated 3 years ago
- Check if the process is running with elevated privileges☆41Updated 4 years ago
- Fallback to a default if `process.stdout.getWindowSize` doesn't exist☆24Updated last year