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:
- Strip redundant indentation and indent the string☆54Updated 4 years ago
- Ponyfill for Error#captureStackTrace☆61Updated 2 years ago
- Get the first path that exists on disk of multiple paths☆59Updated 2 years ago
- Check if a value is a plain object☆102Updated last year
- Check if a file path is a binary file☆46Updated last year
- Check if the process is running with elevated privileges☆41Updated 3 years ago
- Gracefully restore the CLI cursor on exit☆38Updated 11 months ago
- Check if a path is a file, directory, or symlink☆78Updated 11 months ago
- A module which will endeavor to guess your terminal's level of color support.☆23Updated 6 years ago
- Get the directory of globally installed packages and binaries☆76Updated last year
- Convert an absolute path to tilde path: /Users/sindresorhus/dev => ~/dev☆94Updated 3 years ago
- Get the path of the caller module☆64Updated 3 years ago
- Fallback to a default if `process.stdout.getWindowSize` doesn't exist☆24Updated last year
- Create a MD5 hash with hex encoding☆45Updated last year
- The Node.js `util.deprecate()` function with browser support☆38Updated 6 years ago
- Check if your package was installed globally☆70Updated last year
- Import a globally installed module☆58Updated 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…☆94Updated 2 years ago
- Regular expression for matching reserved filename characters☆50Updated 3 years ago
- Check if a string matches the name of a Node.js builtin module☆59Updated 4 months ago
- Check if the character represented by a given Unicode code point is fullwidth☆49Updated last year
- Get the auth token set for an npm registry☆34Updated 5 months ago
- Get namespaced config from the closest package.json☆121Updated last year
- Get the visual width of the widest line in a string - the number of columns required to display it☆37Updated last year
- A replacement for process.exit that ensures stdio are fully drained before exiting.☆67Updated 4 months ago
- Check if your code is running as an npm or yarn script☆64Updated 3 years ago
- Start a promise chain☆58Updated 3 years ago
- Expands symbolic links and prints the resolved absolute filepath☆26Updated last year
- Offers convenient getters and setters for the fs.stat()'s `mode`☆50Updated 5 years ago
- Turn an object into a string of HTML attributes☆49Updated 2 years ago