sindresorhus / os-name
Get the name of the current operating system. Example: macOS Sierra
☆145Updated 7 months ago
Alternatives and similar repositories for os-name:
Users that are interested in os-name are comparing it to the libraries listed below
- Copy a file☆121Updated last year
- Check if your package was installed globally☆70Updated last year
- Invert the key/value of an object. Example: {foo: 'bar'} → {bar: 'foo'}☆36Updated 2 years ago
- Check if argv has a specific flag☆94Updated 3 years ago
- Convert a value to an array☆130Updated 3 years ago
- Get the real path of the system temp directory☆83Updated 2 years ago
- Detect whether the terminal supports Unicode☆85Updated 4 months ago
- Easily handle defaults for your options☆73Updated last year
- Check if the process is running with elevated privileges☆40Updated 3 years ago
- Get the name of a Windows version from the release number: 5.1.2600 → XP☆43Updated 7 months ago
- Get the hash of an object☆134Updated last year
- Move a file - Even works across devices☆199Updated last year
- Check whether a package or organization name is available on npm☆168Updated 11 months ago
- Write a package.json file☆89Updated 5 months ago
- Read a package.json file☆166Updated last year
- Check if a string matches the name of a Node.js builtin module☆58Updated 8 months ago
- Filter object keys and values into a new object☆101Updated 7 months ago
- Get your PATH prepended with locally installed binaries☆104Updated 2 months ago
- Wordwrap a string with ANSI escape codes☆120Updated last year
- Get a random temporary file path☆79Updated last year
- Detect the dominant newline character of a string☆55Updated last year
- Get metadata of a package from the npm registry☆238Updated 6 months ago
- Import all modules in a directory☆138Updated 2 years ago
- Truncate a string to a specific width in the terminal☆86Updated last year
- Reverse minimist. Convert an object of options into an array of command-line arguments☆185Updated last year
- Parse milliseconds into an object☆119Updated 8 months ago
- Check if the process is running as root user, for example, one started with `sudo`☆78Updated 2 years ago
- Check if your code is running as an npm or yarn script☆64Updated 3 years ago
- Boxes for use in the terminal☆96Updated 5 months ago
- Convert an absolute path to tilde path: /Users/sindresorhus/dev => ~/dev☆93Updated 2 years ago