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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.0
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.0
    2

Package Sidebar

Install

npm i @dogmalang/os

Weekly Downloads

2

Version

0.1.0

License

none

Unpacked Size

2.52 kB

Total Files

3

Last publish

Collaborators

  • dogmalang