Thanks to visit codestin.com
Credit goes to github.com

Skip to content

A cross-platform Map-like interface for reading and writing environment variables.

License

Notifications You must be signed in to change notification settings

fabiospampinato/isoenv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IsoEnv

A cross-platform Map-like interface for reading and writing environment variables.

If available it will use the globalThis.process.env object, otherwise it will use an internal object.

Install

npm install isoenv

Usage

import Env from 'isoenv';

// Set some environment variables

Env.set ( 'foo', 123 );
Env.set ( 'bar', '123' );

// Get some environment variables

Env.get ( 'foo' ); // '123'
Env.get ( 'bar' ); // '123'
Env.get ( 'baz' ); // undefined

// Delete some environment variables

Env.delete ( 'foo' );

// Check if an environment variable exists

Env.has ( 'foo' ); // false
Env.has ( 'bar' ); // true

License

MIT © Fabio Spampinato

About

A cross-platform Map-like interface for reading and writing environment variables.

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

  •  

Packages

No packages published