New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@dogmalang/os

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dogmalang/os

Lib for getting OS info.

latest
Source
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

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

Keywords

Dogma

FAQs

Package last updated on 16 Jan 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts