guld-env

2.0.6 • Public • Published

guld-env

source issues documentation

node package manager travis-ci lgtm david-dm david-dm

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

Package Sidebar

Install

npm i guld-env

Weekly Downloads

9

Version

2.0.6

License

MIT

Unpacked Size

27.2 kB

Total Files

9

Last publish

Collaborators

  • isysd