sindresorhus / windows-release
Get the name of a Windows version from the release number: 5.1.2600 → XP
☆40Updated 3 months ago
Related projects: ⓘ
- Get the first path that exists on disk of multiple paths☆58Updated last year
- Check if a path is inside another path☆37Updated 2 years ago
- Invert the key/value of an object. Example: {foo: 'bar'} → {bar: 'foo'}☆36Updated 2 years ago
- Strip redundant indentation and indent the string☆54Updated 3 years ago
- Check if your package was installed globally☆70Updated 10 months ago
- Get the default browser☆54Updated 8 months ago
- Strip the final newline character from a string/buffer☆33Updated 4 months ago
- Detect the dominant newline character of a string☆55Updated 11 months ago
- Check if the process is running with elevated privileges☆41Updated 3 years ago
- Ponyfill for Error#captureStackTrace☆61Updated last year
- Check if a string matches the name of a Node.js builtin module☆58Updated 4 months ago
- Check if a file path is a binary file☆41Updated 4 months ago
- Get the directory of globally installed packages and binaries☆75Updated 10 months ago
- fs read and write streams based on minipass☆21Updated 2 months ago
- Add XO to your project☆47Updated 10 months ago
- A response-like object for mocking a Node.js HTTP response stream☆37Updated last year
- Check if your code is running as an npm or yarn script☆64Updated 3 years ago
- Trim newlines from the start and/or end of a string☆48Updated last year
- Convert a file path to a file URL: `unicorn.jpg` → `file:///Users/sindresorhus/unicorn.jpg`☆60Updated 5 months ago
- Check if argv has a specific flag☆90Updated 3 years ago
- Timeout HTTP/HTTPS requests☆52Updated 3 years ago
- Turn an object into a string of HTML attributes☆49Updated last year
- Easily handle defaults for your options☆74Updated 11 months ago
- Check if a value is an object☆40Updated 3 years ago
- Regular expression for matching issue references☆48Updated last week
- Mimic a Node.js HTTP response stream☆59Updated 10 months ago
- Define multiple non-enumerable properties at once. Uses `Object.defineProperty` when available; falls back to standard assignment in olde…☆21Updated last month
- A safer `.hasOwnProperty()`☆30Updated last year
- Get metadata on the default editor or a specific editor☆53Updated last year
- Slice a string with ANSI escape codes☆47Updated 3 months ago