yinzara / node-uname

Wrapper around the uname call

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

node-uname

Build Status Coverage Status npm version

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

Installation

npm install node-uname

Example

const { uname } = require('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.

About

Wrapper around the uname call


Languages

Language:C 56.9%Language:JavaScript 37.6%Language:Python 5.4%