{"_id":"@blastz/json-to-env","_rev":"1-d82f278c8d1bc52e0f3805d9e46d74bb","name":"@blastz/json-to-env","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@blastz/json-to-env","version":"0.1.0","description":"Parse json to environment","main":"src/index.js","directories":{"test":"test"},"scripts":{"tsc":"tsc","test":"jest","build":"rm -rf dist && npm run tsc && cp package.json README.md ./dist","push":"npm run test && npm run build && cd ./dist && npm publish --access public --registry=https://registry.npmjs.org"},"repository":{"type":"git","url":"git+https://github.com/blastZ/json-to-env.git"},"author":{"name":"blastz"},"license":"MIT","bugs":{"url":"https://github.com/blastZ/json-to-env/issues"},"homepage":"https://github.com/blastZ/json-to-env#readme","devDependencies":{"@types/jest":"^26.0.9","@types/node":"^14.0.27","jest":"^26.2.2","typescript":"^3.9.7"},"_id":"@blastz/json-to-env@0.1.0","_nodeVersion":"12.16.2","_npmVersion":"6.14.7","dist":{"integrity":"sha512-c/20f2qkj73/kx/JYzJUNE1RKoQPfN7y7zuiqYonycLY2r+FoX4UvhgcYFzq/cwTaf8EzyZIVZm2sO82jlz9Kw==","shasum":"b2cb4efa723272493c11bb4183a3b2c872d03adc","tarball":"https://registry.npmjs.org/@blastz/json-to-env/-/json-to-env-0.1.0.tgz","fileCount":6,"unpackedSize":4502,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfMSkLCRA9TVsSAnZWagAABUkP/jsQhyw7tORUYP98EGyr\necx9OzuVRkzWZB/eobKfd4VSMCQdSY1vG8L8DZdn/qSbUr9nYLQbG5V2uvqL\ni2INSj8YBnRuZjgQEoG9KGLhE2btts7/cz0q+AThxaqWhTow2/jP4anxLiD5\nttwBqJ6NcJj97Ta3Y8dMIhNAjyOShSwUwGshL4mCrJsuNhV8BWSISdE1ukVD\njigegBANP9uKDubpxW8jwjskMrtRVoU+HiQO//WI0yvGcEK2uDXfRH3PV7mS\nxZjUSo4At8uA2ZejgVGh+Uxa6/eP4z1XMD8Paa2EK1leAnyMUwhH0WPFQBVV\nY8YaJUjqbUvhNUrkrvgAcMFnONQKvHZY/5CPGzhmZ1QABztkQNHSuDPxoZbx\nsmLbwrrQTeVfVqaD8jt8eEXXRnnermfxHjj3kz6CTi+ynV6dXhnGSs3Wx826\nmekGeQNDo2KNahntRZHHyDhmGryTeb8L557mjcci7W0BIUoXO4MogwcDjSX5\ngq817HUR3yB74xLLOEfdvMlEgXPLImQe8i5wBsA7PzQBCNUBHZmQCLQARnCH\nOEbMyWp1IRAgqwaPMj2EUzbv4sleUDVYKQZZNHx5kCRiSUHr4x1sdCi+AlnE\n7AzSWMECYGxWTSpazjJhR9PobWsZVo5Z5bx250mC1imVzOlqY8pY8lmNJ+s2\npSSX\r\n=tSF9\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCCoZQ1Gf6HVsCB1GLir/CRCkPg43yJEKbWmAQbDHQFnQIgYGYF/liPnl8KvHc4YhdpBTsHYXbwdwL26bxtDITM2pM="}]},"maintainers":[{"name":"blastz","email":"touchzh1996@outlook.com"}],"_npmUser":{"name":"blastz","email":"touchzh1996@outlook.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/json-to-env_0.1.0_1597057291461_0.011646600150263975"},"_hasShrinkwrap":false}},"time":{"created":"2020-08-10T11:01:31.412Z","0.1.0":"2020-08-10T11:01:31.587Z","modified":"2022-04-04T19:25:25.286Z"},"maintainers":[{"name":"blastz","email":"touchzh1996@outlook.com"}],"description":"Parse json to environment","homepage":"https://github.com/blastZ/json-to-env#readme","repository":{"type":"git","url":"git+https://github.com/blastZ/json-to-env.git"},"author":{"name":"blastz"},"bugs":{"url":"https://github.com/blastZ/json-to-env/issues"},"license":"MIT","readme":"# json-to-env\n\n## Install\n\n```bash\n$ npm install @blastz/json-to-env\n```\n\n## Hello json-to-env\n\nCreate `env.json` at the root of project\n\n```json\n// env.json\n{\n  \"custom\": {\n    \"app\": {\n      \"stringValue\": \"app\",\n      \"trueValue\": true,\n      \"falseValue\": false,\n      \"arrayValue\": [true, \"true\", 1],\n      \"numberValue\": 1,\n      \"objectValue\": {\n        \"name\": \"app2\"\n      }\n    }\n  }\n}\n```\n\nImport `json-to-env`\n\n```ts\nimport \"@blastz/json-to-env\";\n```\n\nParsed environment values\n\n```js\nprocess.env.CUSTOM_APP_STRING_VALUE === \"app\";\nprocess.env.CUSTOM_APP_TRUE_VALUE === \"true\";\nprocess.env.CUSTOM_APP_FALSE_VALUE === \"\";\nprocess.env.CUSTOM_APP_ARRAY_VALUE === '[true,\"true\",1]';\nprocess.env.CUSTOM_APP_NUMBER_VALUE === \"1\";\nprocess.env.CUSTOM_APP_OBJECT_VALUE_NAME === \"app2\";\n```\n\n## License\n\nMIT\n","readmeFilename":"README.md"}