@dogmalang/os
v0.1.0
Published
Lib for getting OS info.
Downloads
2
Readme
@dogmalang/os
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' }
>