sindresorhus / os-name
Get the name of the current operating system. Example: macOS Sierra
☆144Updated 5 months ago
Related projects ⓘ
Alternatives and complementary repositories for os-name
- Wordwrap a string with ANSI escape codes☆120Updated last year
- Toggle the CLI cursor☆103Updated 3 months ago
- Copy a file☆121Updated last year
- Get the real path of the system temp directory☆82Updated 2 years ago
- Write a package.json file☆89Updated 3 months ago
- Check if your package was installed globally☆70Updated last year
- Check if argv has a specific flag☆94Updated 3 years ago
- Filter object keys and values into a new object☆100Updated 5 months ago
- Check if the process is running with elevated privileges☆41Updated 3 years ago
- Generate a unique random string☆85Updated 2 years ago
- Get the directory of globally installed packages and binaries☆75Updated last year
- Move a file - Even works across devices☆198Updated last year
- Parse milliseconds into an object☆119Updated 6 months ago
- Get the hash of an object☆134Updated last year
- Lazy number range generator☆82Updated 10 months ago
- Check whether a package or organization name is available on npm☆168Updated 9 months ago
- Check if a string matches the name of a Node.js builtin module☆58Updated 6 months ago
- Check if something is a Node.js stream☆111Updated 3 weeks ago
- Get the first path that exists on disk of multiple paths☆58Updated last year
- Convert a value to an array☆131Updated 3 years ago
- Detect the dominant newline character of a string☆55Updated last year
- Make your terminal beep☆132Updated 2 years ago
- Read a package.json file☆166Updated last year
- Ponyfill for Error#captureStackTrace☆61Updated 2 years ago
- Check if your code is running as an npm or yarn script☆64Updated 3 years ago
- Exit the process when the `esc` key is pressed☆57Updated 11 months ago
- Easily handle defaults for your options☆73Updated last year
- Make a function mimic another one☆91Updated 3 weeks ago
- Randomize the order of items in an array☆107Updated 2 years ago
- Ensure a function is only called once☆162Updated last year
- Convert an absolute path to tilde path: /Users/sindresorhus/dev => ~/dev☆93Updated 2 years ago