{"id":17031191,"url":"https://github.com/CourseDesign/conev-source-process-env","last_synced_at":"2026-04-15T08:30:16.922Z","repository":{"id":36972330,"uuid":"248932773","full_name":"CourseDesign/conev-source-process-env","owner":"CourseDesign","description":"conev-source-process-env is an implementation of conev's source to get configuration from process.env.","archived":false,"fork":false,"pushed_at":"2023-01-24T05:02:36.000Z","size":17,"stargazers_count":0,"open_issues_count":9,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-10-14T08:10:52.993Z","etag":null,"topics":["conev","configuration","environment-variables","npm","npm-package","process-env"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/conev-source-process-env","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CourseDesign.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-03-21T08:08:28.000Z","updated_at":"2023-01-31T18:00:06.000Z","dependencies_parsed_at":"2023-02-13T17:50:41.650Z","dependency_job_id":null,"html_url":"https://github.com/CourseDesign/conev-source-process-env","commit_stats":null,"previous_names":["kdpark0723/conev-source-process-env"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CourseDesign%2Fconev-source-process-env","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CourseDesign%2Fconev-source-process-env/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CourseDesign%2Fconev-source-process-env/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CourseDesign%2Fconev-source-process-env/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CourseDesign","download_url":"https://codeload.github.com/CourseDesign/conev-source-process-env/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219847664,"owners_count":16556349,"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":["conev","configuration","environment-variables","npm","npm-package","process-env"],"created_at":"2024-10-14T08:10:55.201Z","updated_at":"2026-04-15T08:30:16.868Z","avatar_url":"https://github.com/CourseDesign.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# conev-source-process-env\n\nconev-source-process-env is an implementation of conev's source to get configuration from process.env.\n\n![](https://img.shields.io/npm/dm/conev-source-process-env.png?style=flat-square)\n\n​    \n\n## Install\n\n```shell\n# with npm \nnpm install conev-source-process-env\n \n# or with Yarn \nyarn add conev-source-process-env\n```\n\n​    \n\n## Usage\n\nGet ConfigBuilder from conev and Sources to use.\n\n```typescript\nimport { ConfigBuilder } from 'conev';\nimport ProcessEnvSource from 'conev-source-process-env';\n```\n\nAnd create Source and set up.\n\n```typescript\nconst processEnvSource = new ProcessEnvSource(/* env */);\n```\n\nCreate ConfigBuilder and set Environment, add source. (highest priority is added first).\n\n```typescript\nconst builder = new ConfigBuilder();\n\nbuilder\n    .setEnv('dev', 'basic')\n    .addSource(processEnvSource);\n```\n\nBuild configuration\n\n```typescript\nconst config = await builder.build(); // This is the result of combining dev and basic.\n```\n\nUse configuration\n\n```typescript\nconfig.get() // The whole configuration created comes out\nconfig.get('PATH'); // Is same as config.get().PATH\n```\n\n​    \n\n## Process Env Source\n\n```typescript\nclass ProcessEnvSource {\n    constructor(env?: string);\n    export(): Promise\u003cMap\u003cstring, object\u003e\u003e;\n}\n```\n\n`ProcessEnvSource` defines the source from process.env.\n​    \n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FCourseDesign%2Fconev-source-process-env","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FCourseDesign%2Fconev-source-process-env","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FCourseDesign%2Fconev-source-process-env/lists"}