@dogmalang/os

0.1.0 • Public • Published

@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' }
>

Readme

Keywords

Package Sidebar

Install

npm i @dogmalang/os

Weekly Downloads

0

Version

0.1.0

License

none

Unpacked Size

2.52 kB

Total Files

3

Last publish

Collaborators

  • dogmalang