sindresorhus / os-name
Get the name of the current operating system. Example: macOS Sierra
☆145Updated 11 months ago
Alternatives and similar repositories for os-name:
Users that are interested in os-name are comparing it to the libraries listed below
- Get the real path of the system temp directory☆83Updated 2 years ago
- Check if argv has a specific flag☆95Updated 3 years ago
- Check if your package was installed globally☆70Updated last year
- Get an unused filename by appending a number if it exists: `file.txt` → `file (1).txt`☆140Updated 3 years ago
- Wordwrap a string with ANSI escape codes☆123Updated last year
- Parse milliseconds into an object☆119Updated last year
- Lazy number range generator☆81Updated last year
- Move a file - Even works across devices☆199Updated last year
- Write a package.json file☆88Updated 9 months ago
- Get the directory of globally installed packages and binaries☆75Updated last year
- Check if the process is running with elevated privileges☆41Updated 3 years ago
- Convert an absolute path to tilde path: /Users/sindresorhus/dev => ~/dev☆93Updated 2 years ago
- Block the main thread for a given amount of time☆124Updated 2 years ago
- Check if a string matches the name of a Node.js builtin module☆59Updated 2 months ago
- Read a package.json file☆165Updated last year
- Check if your code is running as an npm or yarn script☆64Updated 3 years ago
- Copy a file☆120Updated last year
- Check whether a package or organization name is available on npm☆170Updated last year
- Get the latest version of an npm package☆176Updated last year
- Exit the process when the `esc` key is pressed☆56Updated last year
- Check if a project is using Yarn☆66Updated 3 years ago
- Toggle the CLI cursor☆108Updated 9 months ago
- Detect whether the terminal supports Unicode☆85Updated 8 months ago
- Get the hash of an object☆135Updated last year
- Convert an object of time properties to milliseconds: `{seconds: 2}` → `2000`☆160Updated 4 years ago
- Filter object keys and values into a new object☆101Updated 11 months ago
- Easily handle defaults for your options☆74Updated last year
- Truncate a string to a specific width in the terminal☆87Updated last year
- Check if a path is a file, directory, or symlink☆78Updated 9 months ago
- Convert a value to an array☆129Updated 3 years ago