Socket
Book a DemoInstallSign in
Socket

env-info

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

env-info

Get environment info (node + browser)

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

env-info

Build Status Coverage Status

Get environment information (node + browser).

Installation

$ npm install env-info --save

Usage

const envInfo = require('env-info');

var info = envInfo();

// in Node.js
/*
{
	"runtime": {
		"name": "node",
		"version": "4.2.6"
	},
	"os": {
		"name": "OS X Mavericks"
	}
}
*/

// in browser
/*
{
	"runtime": {
		"name": "Safari",
		"version": "538"
	},
	"os": {
		"name": "OS X"
	}
}
*/

Tests

$ npm test
$ npm run test-browser

License

MIT © Vadim Demedes

FAQs

Package last updated on 25 Jan 2016

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