guld-env
Guld environment detection module.
Install
Node
npm i guld-env
Browser
curl https///bitbucket.org/guld/tech-js-node_modules-guld-env/raw/guld/guld-env.min.js -o guld-env.min.js
Usage
// properties
console.log(guldEnv.name) // chrome
console.log(guldEnv.version) // 70.x.x
console.log(guldEnv.JS) // chrome@70.x.x
console.log(guldEnv.protocol) // file
// async
guldEnv.os().then(console.log)
/*
{ os: 'linux',
dist: 'Ubuntu',
codename: 'bionic',
release: '18.04' }
*/
Node
const guldEnv = require('guld-env')
Browser
<script src="guld-env.min.js"></script>
CLI
The cli for this module is named guld-env-cli
and is available from guld git hosts and npm.
npm i -g guld-env-cli
License
MIT Copyright isysd