{"_id":"env-variable","_rev":"117038","name":"env-variable","description":"Cross platform environment variables with process.env, window.name, location.hash and localStorage fallbacks","dist-tags":{"latest":"0.0.6"},"maintainers":[{"name":"3rdeden","email":"npm@3rd-Eden.com"},{"name":"v1","email":"info@3rd-Eden.com"}],"time":{"modified":"2021-06-03T10:50:16.000Z","created":"2014-05-28T21:31:42.930Z","0.0.6":"2020-01-29T12:47:35.082Z","0.0.5":"2018-10-03T15:48:43.868Z","0.0.4":"2018-02-26T11:40:29.324Z","0.0.3":"2014-11-03T14:49:09.363Z","0.0.2":"2014-09-11T12:00:42.049Z","0.0.1":"2014-09-01T18:25:58.636Z","0.0.0":"2014-05-28T21:31:42.930Z"},"users":{},"author":{"name":"Arnout Kazemier"},"repository":{"type":"git","url":"git+https://github.com/3rd-Eden/env-variable.git"},"versions":{"0.0.6":{"name":"env-variable","version":"0.0.6","description":"Cross platform environment variables with process.env, window.name, location.hash and localStorage fallbacks","main":"index.js","scripts":{"100%":"istanbul check-coverage --statements 100 --functions 100 --lines 100 --branches 100","test":"mocha test.js","watch":"mocha --watch test.js","coverage":"istanbul cover ./node_modules/.bin/_mocha -- test.js","test-travis":"istanbul cover node_modules/.bin/_mocha --report lcovonly -- test.js"},"repository":{"type":"git","url":"git+https://github.com/3rd-Eden/env-variable.git"},"keywords":["browser","env","environment variable","environment","fallback","location.hash","process.env","variable","window.name"],"author":{"name":"Arnout Kazemier"},"license":"MIT","bugs":{"url":"https://github.com/3rd-Eden/env-variable/issues"},"homepage":"https://github.com/3rd-Eden/env-variable","devDependencies":{"assume":"^2.0.1","mocha":"^5.1.1","istanbul":"^0.4.5"},"gitHead":"9c46d07a4bd9e53c229c0463786aafa81e5584ce","_id":"env-variable@0.0.6","_nodeVersion":"10.16.0","_npmVersion":"6.9.0","dist":{"shasum":"74ab20b3786c545b62b4a4813ab8cf22726c9808","size":3378,"noattachment":false,"key":"/env-variable/-/env-variable-0.0.6.tgz","tarball":"http://registry.cnpm.dingdandao.com/env-variable/download/env-variable-0.0.6.tgz"},"maintainers":[{"name":"3rdeden","email":"npm@3rd-Eden.com"},{"name":"v1","email":"info@3rd-Eden.com"}],"_npmUser":{"name":"3rdeden","email":"npmjs@3rd-Eden.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/env-variable_0.0.6_1580302054563_0.07583524103994144"},"_hasShrinkwrap":false,"publish_time":1580302055082,"_cnpm_publish_time":1580302055082},"0.0.5":{"name":"env-variable","version":"0.0.5","description":"Cross platform environment variables with process.env, window.name, location.hash and localStorage fallbacks","main":"index.js","scripts":{"100%":"istanbul check-coverage --statements 100 --functions 100 --lines 100 --branches 100","test":"mocha test.js","watch":"mocha --watch test.js","coverage":"istanbul cover ./node_modules/.bin/_mocha -- test.js","test-travis":"istanbul cover node_modules/.bin/_mocha --report lcovonly -- test.js"},"repository":{"type":"git","url":"git+https://github.com/3rd-Eden/env-variable.git"},"keywords":["browser","env","environment variable","environment","fallback","location.hash","process.env","variable","window.name"],"author":{"name":"Arnout Kazemier"},"license":"MIT","bugs":{"url":"https://github.com/3rd-Eden/env-variable/issues"},"homepage":"https://github.com/3rd-Eden/env-variable","devDependencies":{"assume":"^2.0.1","mocha":"^5.1.1","istanbul":"^0.4.5"},"gitHead":"f663c23ac41beff094378738843584c5754cd6cf","_id":"env-variable@0.0.5","_npmVersion":"6.4.0","_nodeVersion":"8.11.4","_npmUser":{"name":"3rdeden","email":"npm@3rd-Eden.com"},"dist":{"shasum":"913dd830bef11e96a039c038d4130604eba37f88","size":3481,"noattachment":false,"key":"/env-variable/-/env-variable-0.0.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/env-variable/download/env-variable-0.0.5.tgz"},"maintainers":[{"name":"3rdeden","email":"npm@3rd-Eden.com"},{"name":"v1","email":"info@3rd-Eden.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/env-variable_0.0.5_1538581723773_0.23905755196672618"},"_hasShrinkwrap":false,"publish_time":1538581723868,"_cnpm_publish_time":1538581723868},"0.0.4":{"name":"env-variable","version":"0.0.4","description":"Cross platform environment variables with process.env, window.name, location.hash and localStorage fallbacks","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/3rd-Eden/env-variable.git"},"keywords":["browser","env","environment variable","environment","fallback","location.hash","process.env","variable","window.name"],"author":{"name":"Arnout Kazemier"},"license":"MIT","bugs":{"url":"https://github.com/3rd-Eden/env-variable/issues"},"homepage":"https://github.com/3rd-Eden/env-variable","gitHead":"de6cb8b7d6ca6370dbb5023036987ebee9fd745a","_id":"env-variable@0.0.4","_npmVersion":"5.6.0","_nodeVersion":"8.9.1","_npmUser":{"name":"3rdeden","email":"npm@3rd-Eden.com"},"dist":{"shasum":"0d6280cf507d84242befe35a512b5ae4be77c54e","size":2000,"noattachment":false,"key":"/env-variable/-/env-variable-0.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/env-variable/download/env-variable-0.0.4.tgz"},"maintainers":[{"name":"3rdeden","email":"npm@3rd-Eden.com"},{"name":"v1","email":"info@3rd-Eden.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/env-variable_0.0.4_1519645229253_0.5584302676035644"},"_hasShrinkwrap":false,"publish_time":1519645229324,"_cnpm_publish_time":1519645229324},"0.0.3":{"name":"env-variable","version":"0.0.3","description":"Cross platform environment variables with process.env, window.name, location.hash and localStorage fallbacks","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"https://github.com/3rd-Eden/env-variable"},"keywords":["browser","env","environment variable","environment","fallback","location.hash","process.env","variable","window.name"],"author":{"name":"Arnout Kazemier"},"license":"MIT","bugs":{"url":"https://github.com/3rd-Eden/env-variable/issues"},"homepage":"https://github.com/3rd-Eden/env-variable","gitHead":"fc1e8d8fa2efede79fb3a58be07e390f895b4b04","_id":"env-variable@0.0.3","_shasum":"b86c1641be5610267d506f18071ea76d707097cb","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"V1","email":"info@3rd-Eden.com"},"maintainers":[{"name":"3rdeden","email":"npm@3rd-Eden.com"},{"name":"v1","email":"info@3rd-Eden.com"}],"dist":{"shasum":"b86c1641be5610267d506f18071ea76d707097cb","size":2012,"noattachment":false,"key":"/env-variable/-/env-variable-0.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/env-variable/download/env-variable-0.0.3.tgz"},"directories":{},"publish_time":1415026149363,"_cnpm_publish_time":1415026149363,"_hasShrinkwrap":false},"0.0.2":{"name":"env-variable","version":"0.0.2","description":"Cross platform environment variables with process.env, window.name, location.hash and localStorage fallbacks","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"https://github.com/3rd-Eden/env-variable"},"keywords":["browser","env","environment variable","environment","fallback","location.hash","process.env","variable","window.name"],"author":{"name":"Arnout Kazemier"},"license":"MIT","bugs":{"url":"https://github.com/3rd-Eden/env-variable/issues"},"homepage":"https://github.com/3rd-Eden/env-variable","_id":"env-variable@0.0.2","_shasum":"c3d680fb1275f42e8b96d1046db946577b2e6d86","_from":".","_npmVersion":"1.4.10","_npmUser":{"name":"V1","email":"info@3rd-Eden.com"},"maintainers":[{"name":"3rdeden","email":"npm@3rd-Eden.com"},{"name":"v1","email":"info@3rd-Eden.com"}],"dist":{"shasum":"c3d680fb1275f42e8b96d1046db946577b2e6d86","size":2002,"noattachment":false,"key":"/env-variable/-/env-variable-0.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/env-variable/download/env-variable-0.0.2.tgz"},"directories":{},"publish_time":1410436842049,"_cnpm_publish_time":1410436842049,"_hasShrinkwrap":false},"0.0.1":{"name":"env-variable","version":"0.0.1","description":"Cross platform environment variables with process.env, window.name, location.hash and localStorage fallbacks","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"https://github.com/3rd-Eden/env-variable"},"keywords":["browser","env","environment variable","environment","fallback","location.hash","process.env","variable","window.name"],"author":{"name":"Arnout Kazemier"},"license":"MIT","bugs":{"url":"https://github.com/3rd-Eden/env-variable/issues"},"homepage":"https://github.com/3rd-Eden/env-variable","_id":"env-variable@0.0.1","_shasum":"f20c85a4b9375c601b676c80763cc70ba5ab3cb9","_from":".","_npmVersion":"1.4.10","_npmUser":{"name":"V1","email":"info@3rd-Eden.com"},"maintainers":[{"name":"3rdeden","email":"npm@3rd-Eden.com"},{"name":"v1","email":"info@3rd-Eden.com"}],"dist":{"shasum":"f20c85a4b9375c601b676c80763cc70ba5ab3cb9","size":2000,"noattachment":false,"key":"/env-variable/-/env-variable-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/env-variable/download/env-variable-0.0.1.tgz"},"directories":{},"publish_time":1409595958636,"_cnpm_publish_time":1409595958636,"_hasShrinkwrap":false},"0.0.0":{"name":"env-variable","version":"0.0.0","description":"Cross platform environment variables with process.env, window.name, location.hash and localStorage fallbacks","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"https://github.com/3rd-Eden/env-variable"},"keywords":["browser","env","environment variable","environment","fallback","location.hash","process.env","variable","window.name"],"author":{"name":"Arnout Kazemier"},"license":"MIT","bugs":{"url":"https://github.com/3rd-Eden/env-variable/issues"},"homepage":"https://github.com/3rd-Eden/env-variable","_id":"env-variable@0.0.0","_shasum":"6c92f97e7ca1fd0973fe9e3a327cb066bc58c9dd","_from":".","_npmVersion":"1.4.10","_npmUser":{"name":"V1","email":"info@3rd-Eden.com"},"maintainers":[{"name":"3rdeden","email":"npm@3rd-Eden.com"},{"name":"v1","email":"info@3rd-Eden.com"}],"dist":{"shasum":"6c92f97e7ca1fd0973fe9e3a327cb066bc58c9dd","size":1994,"noattachment":false,"key":"/env-variable/-/env-variable-0.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/env-variable/download/env-variable-0.0.0.tgz"},"directories":{},"publish_time":1401312702930,"_cnpm_publish_time":1401312702930,"_hasShrinkwrap":false}},"readme":"# env-variable\n\nA cross platform `env-variable` for browsers and node. Of course, browsers\ndoesn't have environment variables but we do have hashtags and localStorage\nwhich we will use as fallback.\n\n### hashtags\n\nThis is a really easy way of adding some trigger some environment variables that\nyou might use for debugging. We assume that the hashtag (#) contains\na query string who's key is the name and the value.. the value.\n\n### localStorage\n\nIf you want more persisting env variables you can set a query string of env\nvariables in localStorage. It will attempt to use the `env` variable.\n\n## Installation\n\nThis module is written for node and browserify and can be installed using npm:\n\n```\nnpm install --save env-variable\n```\n\n## Usage\n\nThis module exposes a node / `module.exports` interface.\n\n```js\nvar env = require('env-variable')();\n```\n\nAs you can see from the example above we execute the required module. You can\nalternately store it but I don't assume this a common pattern. When you execute\nthe function it returns an object with all the env variables.\n\nWhen you execute the function you can alternately pass it an object which will\nbe seen as the default env variables and all fallbacks and `process.env` will be\nmerged in to this object.\n\n```js\nvar env = require('env-variable')({\n  foo: 'bar',\n  NODE_ENV: 'production'\n});\n```\n\nOh, in `env-variable` we don't really care how you write your env variables. We\nautomatically add an extra lower case version of the variables so you can access\neverything in one consistent way.\n\nAnd that's basically everything you need to know. *random high fives*.\n\n## License\n\n[MIT](LICENSE)\n","_attachments":{},"homepage":"https://github.com/3rd-Eden/env-variable","bugs":{"url":"https://github.com/3rd-Eden/env-variable/issues"},"license":"MIT"}