sindresorhus / os-name
Get the name of the current operating system. Example: macOS Sierra
☆145Updated 8 months ago
Alternatives and similar repositories for os-name:
Users that are interested in os-name are comparing it to the libraries listed below
- Check if argv has a specific flag☆94Updated 3 years ago
- Check whether a package or organization name is available on npm☆169Updated last year
- Write a package.json file☆89Updated 6 months ago
- Detect the dominant newline character of a string☆55Updated last year
- Parse milliseconds into an object☆119Updated 9 months ago
- Move a file - Even works across devices☆199Updated last year
- Convert a value to an array☆130Updated 3 years ago
- Get the real path of the system temp directory☆83Updated 2 years ago
- Check if your package was installed globally☆70Updated last year
- Copy a file☆121Updated last year
- Check if something is a Node.js stream☆110Updated 3 months ago
- Toggle the CLI cursor☆106Updated 6 months ago
- Convert an absolute path to tilde path: /Users/sindresorhus/dev => ~/dev☆93Updated 2 years ago
- Get the hash of an object☆134Updated last year
- Check if the process is running with elevated privileges☆40Updated 3 years ago
- Convert RGB color to HEX☆119Updated last year
- Import all modules in a directory☆138Updated 2 years 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…☆91Updated 2 years ago
- Get an unused filename by appending a number if it exists: `file.txt` → `file (1).txt`☆140Updated 2 years ago
- Truncate a string to a specific width in the terminal☆86Updated last year
- Wordwrap a string with ANSI escape codes☆120Updated last year
- Check if your code is running as an npm or yarn script☆64Updated 3 years ago
- Boxes for use in the terminal☆98Updated 6 months ago
- Check if a string is a valid filename☆61Updated 3 years ago
- Block the main thread for a given amount of time☆124Updated last year
- Easily handle defaults for your options☆73Updated last year
- Ponyfill for Error#captureStackTrace☆61Updated 2 years ago
- Invert the key/value of an object. Example: {foo: 'bar'} → {bar: 'foo'}☆36Updated 2 years ago
- Find the root directory of a Node.js project or npm package☆240Updated last year
- Get your PATH prepended with locally installed binaries☆104Updated 3 months ago