0.1.0 • Published 5 years ago

@dogmalang/os v0.1.0

Weekly downloads
1
License
-
Repository
github
Last release
5 years ago

@dogmalang/os

NPM version Total downloads

Lib for getting OS info.

Engineered in Valencia, Spain, EU by Justo Labs.

Use

const os = require("@dogmalang/os");

os.platform()

It returns the platform as, for example, linux:

function platform() : string

os.release()

It returns the release data (id, version and platform):

function release() : object

Example:

> os.release()
{ platform: 'linux', id: 'ubuntu', version: '18.04' }
>