env-info
v1.0.0
Published
Get environment info (node + browser)
Downloads
9
Readme
env-info
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