{"id":18256142,"url":"https://github.com/serapath/envlocalify","last_synced_at":"2025-08-11T13:15:57.248Z","repository":{"id":32617902,"uuid":"36203407","full_name":"serapath/envlocalify","owner":"serapath","description":"envify and localenv combined as a browserify transform","archived":false,"fork":false,"pushed_at":"2015-07-15T19:48:51.000Z","size":148,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-09T05:39:36.129Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/serapath.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-05-25T01:42:01.000Z","updated_at":"2016-08-30T07:51:13.000Z","dependencies_parsed_at":"2022-09-01T10:41:44.983Z","dependency_job_id":null,"html_url":"https://github.com/serapath/envlocalify","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/serapath/envlocalify","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serapath%2Fenvlocalify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serapath%2Fenvlocalify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serapath%2Fenvlocalify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serapath%2Fenvlocalify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/serapath","download_url":"https://codeload.github.com/serapath/envlocalify/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serapath%2Fenvlocalify/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269699689,"owners_count":24461219,"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-08-10T02:00:08.965Z","response_time":71,"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":[],"created_at":"2024-11-05T10:20:10.310Z","updated_at":"2025-08-11T13:15:57.178Z","avatar_url":"https://github.com/serapath.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# envlocalify\nenvify and localenv combined as a browserify transform\n# envlocalify\n\n[hughsk/envify](https://github.com/hughsk/envify) and\n[defunctzombie/localenv](https://github.com/defunctzombie/localenv) combined for [substack/node-browserify](https://github.com/substack/node-browserify) modules.\n\n## Installation\n\n```shell\nnpm install envlocalify --save-dev\n```\n\n## USAGE\n\n**This browserify transform can be used like [envify](https://github.com/hughsk/envify)**, but\nin addition, if you use [atomify](https://github.com/atomify/atomify), then:\n\n```js\n// [index.js]\nvar foo = process.env.FOO;\nconsole.log(foo);\n```\n\nAnd a `.env` file sitting in your current working dir.\n\n```sh\n# [.env]\nFOO=bar\n```\n\n**Running atomify with the envlocalify transform:**  \n*(if you change **environment files** in atomify server and/or watch mode, you need to restart atomify)*\n\n```shell\natomify --envlocalify\n```\nresults in\n```js\n// [index.js]\nvar foo = \"bar\";\nconsole.log(foo);\n```\n\n`.env` should be checked into the repository. Locally, you can overwrite properties specified in it, by creating a `.env.local` file, which should be added to `.gitignore`, so every contributor can his own file.\n\n## Advanced\nThis is useful if you want to create `npm tasks` for atomify, e.g.:\n```js\n// [package.json]\n//...\n\"scripts\": {\n  \"start\": \"atomify \u003csee usage below\u003e\"\n//...\n```\n\n```shell\n# replaces \".env\" as the default env file\natomify --envlocalify [ --envfile .envCustom ]\n```\n\n```shell\n# overwrites \".env.local\" as the default file which extends '.env'\natomify --envlocalify [ --localenvfile .env.mylocal ]\n```\n\n```shell\n# disables extending '.env'\natomify --envlocalify [ --localenvfile false ]\n```\nYou can combine both parameters.\n\n## Specifying a custom env file\n\n[defunctzombie/localenv](https://github.com/defunctzombie/localenv) only loads .env files when `NODE_PRODUCTION !== 'production'`.\n\nYou can pass transform options to envlocalify to load custom .env files.\n\n\n## .env files\n\n.env file format is described in [defunctzombie/localenv readme](https://github.com/defunctzombie/localenv#env-files).\n\nYou should use .env files for developer or test environments, not for production* environments.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fserapath%2Fenvlocalify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fserapath%2Fenvlocalify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fserapath%2Fenvlocalify/lists"}