{"id":19464077,"url":"https://github.com/rguj/node-env-parser","last_synced_at":"2025-10-27T15:49:09.616Z","repository":{"id":171569550,"uuid":"411094740","full_name":"rguj/node-env-parser","owner":"rguj","description":"No more headaches! Your best utility for parsing .env variables in Node JS. Code was built based from Laravel's ENV parsing principle.","archived":false,"fork":false,"pushed_at":"2021-09-29T00:31:50.000Z","size":15,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-27T15:49:09.029Z","etag":null,"topics":["config","dotenv","dotenv-parser","env","environment-variables","javascript","js","key-value","nodejs","npm","parser","server-side"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rguj.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2021-09-28T01:19:03.000Z","updated_at":"2021-10-13T00:48:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"32105ef1-798f-4f9b-9c19-3a2946b33323","html_url":"https://github.com/rguj/node-env-parser","commit_stats":null,"previous_names":["rguj/node-env-parser"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rguj/node-env-parser","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rguj%2Fnode-env-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rguj%2Fnode-env-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rguj%2Fnode-env-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rguj%2Fnode-env-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rguj","download_url":"https://codeload.github.com/rguj/node-env-parser/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rguj%2Fnode-env-parser/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281295817,"owners_count":26476759,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-27T02:00:05.855Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["config","dotenv","dotenv-parser","env","environment-variables","javascript","js","key-value","nodejs","npm","parser","server-side"],"created_at":"2024-11-10T18:13:19.037Z","updated_at":"2025-10-27T15:49:09.611Z","avatar_url":"https://github.com/rguj.png","language":"JavaScript","readme":"# node-env-parser\nNo more headaches! Your best utility for parsing .env variables in Node JS. Code was built based from Laravel's ENV parsing principle.\n\n## Instruction\n1) Put this file at the root of the project folder the same level as `main.js` and `.env` file\n2) Prepend this code at the most top of your `main.js` file:\n```js\nglobal.env = require('./node-env-parser').parse();\n```\n3) You can access your .env variables anywhere in your project (server-side)\n```js\nconsole.log(global.env.SAMPLE_KEY);\n```\n4) Please suggest revisions of this code to enhance it\n\n## License\n[GNU GPLv3](https://choosealicense.com/licenses/gpl-3.0/)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frguj%2Fnode-env-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frguj%2Fnode-env-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frguj%2Fnode-env-parser/lists"}