GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - CourseDesign/conev-source-process-env: conev-source-process-env is an implementation of conev's source to get configuration from process.env.

BranchesTags
Open more actions menu

Latest commit

 

History

6 Commits
6 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
lib
lib
 
 
publish-config
publish-config
 
 
test
test
 
 
.eslintrc.js
.eslintrc.js
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
package.json
package.json
 
 
tsconfig.json
tsconfig.json
 
 

Repository files navigation

conev-source-process-env

conev-source-process-env is an implementation of conev's source to get configuration from process.env.

​

Install

# with npm 
npm install conev-source-process-env
 
# or with Yarn 
yarn add conev-source-process-env

​

Usage

Get ConfigBuilder from conev and Sources to use.

import { ConfigBuilder } from 'conev';
import ProcessEnvSource from 'conev-source-process-env';

And create Source and set up.

const processEnvSource = new ProcessEnvSource(/* env */);

Create ConfigBuilder and set Environment, add source. (highest priority is added first).

const builder = new ConfigBuilder();

builder
    .setEnv('dev', 'basic')
    .addSource(processEnvSource);

Build configuration

const config = await builder.build(); // This is the result of combining dev and basic.

Use configuration

config.get() // The whole configuration created comes out
config.get('PATH'); // Is same as config.get().PATH

​

Process Env Source

class ProcessEnvSource {
    constructor(env?: string);
    export(): Promise<Map<string, object>>;
}

ProcessEnvSource defines the source from process.env. ​

About

conev-source-process-env is an implementation of conev's source to get configuration from process.env.

www.npmjs.com/package/conev-source-process-env

Topics

conevconfigurationenvironment-variablesnpmnpm-packageprocess-env

Resources

Readme
Activity
Custom properties

Stars

0 stars

Watchers

0 watching

Forks

1 fork
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.