{"id":20931100,"url":"https://github.com/akashbabu/lib-env","last_synced_at":"2025-03-13T02:14:56.364Z","repository":{"id":81204349,"uuid":"135887269","full_name":"AkashBabu/lib-env","owner":"AkashBabu","description":"A nodejs library for managing easily with ENV ","archived":false,"fork":false,"pushed_at":"2018-08-04T18:02:35.000Z","size":130,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-19T18:53:30.117Z","etag":null,"topics":["env","environment","nodejs-library"],"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/AkashBabu.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGE_LOG.md","contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2018-06-03T08:37:06.000Z","updated_at":"2018-08-04T18:02:22.000Z","dependencies_parsed_at":"2023-06-26T02:01:37.619Z","dependency_job_id":null,"html_url":"https://github.com/AkashBabu/lib-env","commit_stats":{"total_commits":14,"total_committers":2,"mean_commits":7.0,"dds":0.0714285714285714,"last_synced_commit":"84f82db0564694334721c29d1e1062a739cf3dcf"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AkashBabu%2Flib-env","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AkashBabu%2Flib-env/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AkashBabu%2Flib-env/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AkashBabu%2Flib-env/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AkashBabu","download_url":"https://codeload.github.com/AkashBabu/lib-env/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243324507,"owners_count":20273113,"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","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":["env","environment","nodejs-library"],"created_at":"2024-11-18T21:39:03.360Z","updated_at":"2025-03-13T02:14:56.346Z","avatar_url":"https://github.com/AkashBabu.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# lib-env\nAn Efficient nodejs library for managing NODE_ENV comparisons\n\nAll the below comparisons are executed only once at the begining of the application and the results are saved. Hence making the usage more efficient\n\n\n## Usage\n\n```javascript\nimport { IsENVTest } from \"lib-env\";\n\n// By using this library you may change the below code\nif(process.env.NODE_ENV === \"test\") { ... }\n\n// To \nif(IsENVTest) { ... }\n\n```\n\n## Properties\n\n* **IsENVTest**   =\u003e returns `true` if NODE_ENV=test\n* **IsENVDev**    =\u003e returns `true` if NODE_ENV=dev\n* **IsENVStag**   =\u003e returns `true` if NODE_ENV=stag\n* **IsENVProd**   =\u003e returns `true` if NODE_ENV=prod\n\n## Methods\n* **GetENV()**  \nReturns the Current NODE_ENV set. By Default it is set to `dev`","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakashbabu%2Flib-env","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fakashbabu%2Flib-env","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakashbabu%2Flib-env/lists"}