sindresorhus / os-nameLinks
Get the name of the current operating system. Example: macOS Sierra
☆147Updated 3 weeks ago
Alternatives and similar repositories for os-name
Users that are interested in os-name are comparing it to the libraries listed below
Sorting:
- Copy a file☆121Updated last year
- Check whether a package or organization name is available on npm☆170Updated last year
- Check if argv has a specific flag☆95Updated 3 years ago
- Get the real path of the system temp directory☆83Updated 2 years ago
- Easily handle defaults for your options☆75Updated last year
- Parse milliseconds into an object☆119Updated last year
- Wordwrap a string with ANSI escape codes☆125Updated last year
- Write a package.json file☆88Updated 10 months ago
- Check if your package was installed globally☆70Updated last year
- Convert a value to an array☆129Updated 3 years ago
- Get an unused filename by appending a number if it exists: `file.txt` → `file (1).txt`☆140Updated 3 years ago
- Sort the keys of an object☆103Updated 9 months ago
- Invert the key/value of an object. Example: {foo: 'bar'} → {bar: 'foo'}☆37Updated 3 years ago
- Check if the process is running with elevated privileges☆41Updated 3 years ago
- Detect whether the terminal supports Unicode☆85Updated 9 months ago
- Read a package.json file☆169Updated last year
- Get the directory of globally installed packages and binaries☆76Updated last year
- Get the username of the current user☆143Updated last year
- Detect the dominant newline character of a string☆55Updated last year
- Get the latest version of an npm package☆176Updated last year
- Boxes for use in the terminal☆98Updated 10 months ago
- Toggle the CLI cursor☆108Updated 10 months ago
- Get a random temporary file path☆80Updated 2 years ago
- Import all modules in a directory☆138Updated 2 years ago
- Get the user's default shell☆40Updated 3 years ago
- Convert an absolute path to tilde path: /Users/sindresorhus/dev => ~/dev☆94Updated 2 years ago
- Get the name of a Windows version from the release number: 5.1.2600 → XP☆44Updated last month
- Generate a unique random string☆85Updated 2 years ago
- Cross-platform .zip file creation☆130Updated last year
- Move a file - Even works across devices☆200Updated last year