node-uname
TypeScript icon, indicating that this package has built-in type declarations

3.1.1 • Public • Published

node-uname

Build Status npm

A wrapper around the uname call.
Works on GNU/Linux and MacOS.

Installation

npm install node-uname

Example

import { uname } from 'node-uname'

console.log(uname())

// Utsname {
//   sysname: 'Darwin',
//   nodename: 'MacBook.local',
//   release: '15.0.0',
//   version: 'Darwin Kernel Version ...',
//   machine: 'x86_64' }

uname()

The uname() function returns an object containing sysname, nodename, release, version and machine.

If the internal call to the kernel's uname function fails an Error is thrown.

Readme

Keywords

Package Sidebar

Install

npm i node-uname

Weekly Downloads

26

Version

3.1.1

License

MIT

Unpacked Size

7.63 kB

Total Files

10

Last publish

Collaborators

  • tautropfli