{"_id":"env-lift","_rev":"11-bd1fa65c18979612e6b6531138168d25","name":"env-lift","dist-tags":{"latest":"0.0.3"},"versions":{"0.0.1":{"name":"env-lift","version":"0.0.1","keywords":["environment","env","process.env","config","configuration","postman"],"author":{"name":"Postman Labs","email":"help@getpostman.com"},"license":"Apache 2.0","_id":"env-lift@0.0.1","maintainers":[{"name":"shamasis","email":"mail@shamasis.net"}],"homepage":"https://github.com/postmanlabs/sails-mysql-transactions","bugs":{"url":"https://github.com/postmanlabs/sails-mysql-transactions/issues"},"dist":{"shasum":"a71a2d28a5f3db3068e38a1b370068f2d82964b2","tarball":"https://registry.npmjs.org/env-lift/-/env-lift-0.0.1.tgz","integrity":"sha512-77uIa2rSX2aHoaW2ctY2x8pZaz9eDIcWlJ1o88OcsQv+KPReSngaUSRq+mqS4r30zpSOXlWg7XEgUFdf2Al9vQ==","signatures":[{"sig":"MEUCIQCypsjPeFdFfYajI+A5J4NXH45/pZTqRS/dMPcaXQZu/wIgFCDwJthuQe1AxFbNaIZMsf8Lk88kJUgig3mLLZbb1Qw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"a71a2d28a5f3db3068e38a1b370068f2d82964b2","gitHead":"95305c10f066f9645934bb8ea81c8c41e7aebf4c","scripts":{"test":"scripts/test.sh"},"_npmUser":{"name":"shamasis","email":"mail@shamasis.net"},"repository":{"url":"https://github.com/postmanlabs/env-lift.git","type":"git"},"_npmVersion":"2.7.1","description":"Simple namespaced environment variable configuration management solution","directories":{},"_nodeVersion":"0.12.0","dependencies":{},"devDependencies":{"jscs":"^1.11.3","mocha":"^2.2.1","jshint":"^2.6.3","expect.js":"^0.3.1"}},"0.0.2":{"name":"env-lift","version":"0.0.2","keywords":["environment","env","process.env","config","configuration","postman"],"author":{"name":"Postman Labs","email":"help@getpostman.com"},"license":"Apache 2.0","_id":"env-lift@0.0.2","maintainers":[{"name":"shamasis","email":"mail@shamasis.net"},{"name":"postman","email":"help@getpostman.com"}],"homepage":"https://github.com/postmanlabs/sails-mysql-transactions","bugs":{"url":"https://github.com/postmanlabs/sails-mysql-transactions/issues"},"dist":{"shasum":"9c946142329a0a6288bce51d3c308e4f6487a92e","tarball":"https://registry.npmjs.org/env-lift/-/env-lift-0.0.2.tgz","integrity":"sha512-ET2zdVNvFun1jJiA1hxfLobdQaORu+nPRZoFzaC7k07gIysqgQkrlc4JXAYVeo9OJOQzR4CfaF0orSWIYDxqGQ==","signatures":[{"sig":"MEQCIDsDfyCT8ao8hKnamrEz74hvvxgJSHKHcjTYPaGBiB2vAiB8n74JLIU3p0lvaTXbIFAf19oUIg4axO8dvGlrIi84fw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"9c946142329a0a6288bce51d3c308e4f6487a92e","gitHead":"ba78900be0e716930132b4c843552d395c637f3c","scripts":{"test":"scripts/test.sh"},"_npmUser":{"name":"postman","email":"help@getpostman.com"},"repository":{"url":"https://github.com/postmanlabs/env-lift.git","type":"git"},"_npmVersion":"1.4.28","description":"Simple namespaced environment variable configuration management solution","directories":{},"dependencies":{},"devDependencies":{"jscs":"^1.11.3","mocha":"^2.2.1","jshint":"^2.6.3","expect.js":"^0.3.1"}},"0.0.3":{"name":"env-lift","version":"0.0.3","keywords":["environment","env","process.env","config","configuration","postman"],"author":{"name":"Postman Labs","email":"help@getpostman.com"},"license":"Apache 2.0","_id":"env-lift@0.0.3","maintainers":[{"name":"shamasis","email":"mail@shamasis.net"},{"name":"postman","email":"help@getpostman.com"}],"homepage":"https://github.com/postmanlabs/sails-mysql-transactions","bugs":{"url":"https://github.com/postmanlabs/sails-mysql-transactions/issues"},"dist":{"shasum":"2bd7e721b20179f1b7cda0bc27c08f55405d4b3b","tarball":"https://registry.npmjs.org/env-lift/-/env-lift-0.0.3.tgz","integrity":"sha512-3ZNOI8p3dINddP5oGVvfia35TcpdPM7Ps8hrUcjAU0yAj+hjwz28gNZ6BY5rm6wv3AAVi1a23axP8FNhSKRB+w==","signatures":[{"sig":"MEUCIQCDdMaBye6JOVRhNjQfFzJFC7rUV2GB0/pfaxqAUvh79gIgCSBISQSNYfCS/yXtgLPIJW9UOWMdZ2/1OTZDju+r8kI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"2bd7e721b20179f1b7cda0bc27c08f55405d4b3b","gitHead":"0a0e0a91a4b5e2b6805f24a117119c915c47d0bc","scripts":{"test":"scripts/test.sh"},"_npmUser":{"name":"postman","email":"help@getpostman.com"},"repository":{"url":"https://github.com/postmanlabs/env-lift.git","type":"git"},"_npmVersion":"1.4.28","description":"Simple namespaced environment variable configuration management solution","directories":{},"dependencies":{},"devDependencies":{"jscs":"^1.11.3","mocha":"^2.2.1","jshint":"^2.6.3","expect.js":"^0.3.1"}}},"time":{"created":"2015-04-07T16:43:17.971Z","modified":"2025-12-01T19:23:33.346Z","0.0.1":"2015-04-07T16:43:17.971Z","0.0.2":"2015-04-07T21:01:26.968Z","0.0.3":"2015-04-08T08:21:08.404Z"},"bugs":{"url":"https://github.com/postmanlabs/sails-mysql-transactions/issues"},"author":{"name":"Postman Labs","email":"help@getpostman.com"},"license":"Apache 2.0","homepage":"https://github.com/postmanlabs/sails-mysql-transactions","keywords":["environment","env","process.env","config","configuration","postman"],"repository":{"url":"https://github.com/postmanlabs/env-lift.git","type":"git"},"description":"Simple namespaced environment variable configuration management solution","maintainers":[{"email":"mail@shamasis.net","name":"shamasis"},{"email":"tilak.patel@postman.com","name":"tilak-patel-postman"},{"email":"kayalvizhi.devakumaran@postman.com","name":"kdevakumaran"}],"readme":"<img src=\"https://travis-ci.org/postmanlabs/env-lift.svg?branch=master\" alt=\"Master Build Status\" />\n\n# env-lift\n\n*env-lift* provides a NodeJS module to easily read configurations from environment variables. The module makes it super\neasy to abstract configuration loading from environment in an organised and namespaced manner.\n\n\n## Installing env-lift\n\nThe easiest way to install env-lift is from the NPM registry. Switch to your project directory and run the following\ncommand. Once installation completes, refer to the usage guidelines or the examples directory to use it in your project.\n\n```terminal\nnpm install env-lift --save\n```\n\n## Usage\n\nThe best way to understand how to use this module is to refer to examples. A couple of them is located within the\n/examples directory and here we would elaborate on a few use cases.\n\n### A simple use case where config is stored in an external JSON file\n\nIn this use-case, let us assume that you are storing your config in a simple javascript variable. For your production\nserver, you are possibly modifying the variables and running your application. In reality, the use-case could be that\nyou are fetching the configuration from a separate JSON file. But for all practical purposes, the example here could be\nmorphed to meet those scenarios.\n\n__Original Code:__\n\n```javascript\nvar config = {\n    port: 80,\n    environment: 'development',\n    db: {\n        host: 'localhost',\n        user: 'root',\n        password: ''\n    }\n};\n```\n\n__Updated code using env-lift:__\n\n```javascript\nvar config = require('env-lift').load('my-app', {\n    port: 80,\n    environment: 'development',\n    db: {\n        host: 'localhost',\n        user: 'root',\n        password: ''\n    }\n});\n```\n\nAt this stage, if you can override the values of the configuration using environment variables.\n\n```terminal\nexport MY_APP_PORT=8080;\nexport MY_APP_DB_HOST=\"example.com\";\n```\n\nExecuting the above terminal exports before running your app would return port as 8080 and also return db host as\n_example.com_.\n\n## Some gotchas\n\n- The keys are expected to be all uppercase alphanumeric.\n- The first letter of the environment variable cannot be a number.\n- If your key has non-alphanumeric characters, they are replaced by underscore character\n\n## Contributing\n\nContribution is accepted in form of Pull Requests that passes Travis CI tests. You should install this repository using\n`npm install -d` and run `npm test` locally before sending Pull Request.","readmeFilename":"README.md"}