{"_id":"init-node-env","_rev":"31-417744d77e2de985e0ab67b5f449228d","name":"init-node-env","time":{"modified":"2022-05-05T22:28:40.999Z","created":"2018-01-10T03:42:52.936Z","0.0.1":"2018-01-10T03:42:52.936Z","0.0.2":"2018-01-10T04:37:44.502Z","0.0.3":"2018-01-10T05:36:02.629Z","0.0.4":"2018-01-10T05:40:53.869Z","0.0.5":"2018-01-10T05:43:11.316Z","0.0.6":"2018-01-10T05:44:46.223Z","0.0.8":"2018-01-10T19:46:03.944Z","0.0.9":"2018-01-10T19:46:51.851Z","0.0.10":"2018-01-10T20:08:56.693Z","0.0.12":"2018-01-10T21:40:55.809Z","0.1.0":"2018-01-10T21:45:48.080Z","0.1.1":"2018-01-11T00:56:05.576Z","0.1.2":"2018-01-11T00:57:18.910Z","0.1.3":"2018-01-11T01:44:32.608Z","0.1.4":"2018-01-11T02:47:54.807Z","0.1.5":"2018-01-11T02:53:42.985Z"},"maintainers":[{"name":"melvyn","email":"melvynkim@gmail.com"}],"dist-tags":{"latest":"0.1.5"},"description":"Initialize production environment setup for node project.","readme":"# init-node-env\n\n- Initialize a few essential initialization to the node app to support multi-environment `.env` files.\n\n# use\n\n> install\n\n    # if you use `yarn`\n    yarn global add init-node-env\n    # if you use `npm`\n    npm install -g init-node-env\n\n> from the root of the project you'd like to initialize\n\n    init-node-env $PWD\n\n# about\n\n### 1. environment types\n\n- `local`\n    - for seat-specific environments.\n- `test`\n    - for integration/unit tests environments.\n- `develop`\n    - for remotely deployed servers to share the development servers among the internal developers.\n- `master`\n    - for QAing and staging before production.\n- `production`\n    - for production release to be used by real users.\n\n### 2. encrypted and decrypted\n\n- For security, we're encrypting each `.env` files using aes-256-cbc.\n- When using the `.env` files, we decypt them. The passwords to decrypt environments should be shared amongst the authorized team members safely.\n\n### 3. filenames\n\n- `.env`\n    + has the highest precendences to use this environment.\n    + *NOT* intended to be modified directly; this file must be the derived product during the build (e.g. by Jenkins build server).\n- `.env.(local|test|develop|master|production).(encrypted|decrypted)`\n\n### 4. [husky](https://github.com/typicode/husky) hook\n\n- triggers automatic encryption and rename of the files from `.env.(local|test|develop|master|production).decrypted`  to `.env.(local|test|develop|master|production).encrypted`.\n\n### 5. `.gitignore`\n\n- must include `.env.*.decrypted` and `.env` as these files may contain sensitive data.\n\n# TODO\n\n- [ ] validator in the `precommit` if `init-node-app` is installed correctly.\n- [ ] improve README.md with why, how","versions":{"0.1.5":{"author":{"name":"Melvyn Kim","email":"melvynkim@gmail.com"},"bin":{"init-node-env":"install.js"},"bugs":{"url":"https://github.com/melvynkim/init-node-env/issues"},"dependencies":{"node-jq":"^1.2.0","path":"^0.12.7"},"description":"Initialize production environment setup for node project.","engines":{"node":">=8.9.4"},"license":"MIT","main":"install.js","name":"init-node-env","private":false,"repository":{"type":"git","url":"git+https://github.com/melvynkim/init-node-env.git"},"version":"0.1.5","gitHead":"933721898527dbe1353205479a340e1d55dfa44d","homepage":"https://github.com/melvynkim/init-node-env#readme","_id":"init-node-env@0.1.5","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"melvyn","email":"melvynkim@gmail.com"},"dist":{"integrity":"sha512-aaEseVV6LTuUz7v+SOcwT07noOe3+JI0ZwguXicmPHQqz+VSB4xLVlCJWwINRdZU8IfUVBxeYjNs/VrCu3Z29w==","shasum":"04021acb71110a49414cb6c29df647b03fb2b830","tarball":"https://registry.npmjs.org/init-node-env/-/init-node-env-0.1.5.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDvbA2fLA2v6DZsNp1KJzGdC9rXzgcXH8yWJPDuS4HpdwIgZMYgNVR5a/HPP17Rr0sntX18M+zGR6Nx3tZ9HUErmYg="}]},"maintainers":[{"name":"melvyn","email":"melvynkim@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/init-node-env-0.1.5.tgz_1515639221961_0.3125753519125283"}}},"homepage":"https://github.com/melvynkim/init-node-env#readme","repository":{"type":"git","url":"git+https://github.com/melvynkim/init-node-env.git"},"author":{"name":"Melvyn Kim","email":"melvynkim@gmail.com"},"bugs":{"url":"https://github.com/melvynkim/init-node-env/issues"},"license":"MIT","readmeFilename":"README.md"}