Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Universal library for managing your environment variables
Environment variables are a set of dynamic named values that can affect the way running processes will behave on a computer.
They are part of the environment in which a process runs
MIT
npm install envisor --save-dev
For example you could use the following code:
var env = require('envisor');
env.set('foo', 1);
env.get('foo'); // 1
Sets/retrieves an environment variable
Primitive values
var env = require('envisor');
env.set('foo', 1);
env.get('foo'); // 1
Object values
var env = require('envisor');
env.set('foo', { bar: 1});
env.get('foo).bar; // 1
Object key/values
var env = require('envisor');
env.set({ foo: 1 });
env.get('foo'); // 1
Checks an environment variable
var env = require('envisor');
env.set('foo', 1);
env.has('foo'); // true
Use you personal namespace
var env = require('envisor');
env.use('foo');
env.set('bar', 1);
env.get('foo'); // 1
process.env.foo_bar; // 1
Removes an environment variable
var env = require('envisor');
env.set('foo', 1);
env.remove('foo');
env.get('foo'); // ''
Returns all environment variables
var env = require('envisor');
env.all(); // process.env
npm test
Environment variables
process.env
Task submitted by Alexander Abashkin
FAQs
Universal library for managing your environment variables
The npm package envisor receives a total of 3 weekly downloads. As such, envisor popularity was classified as not popular.
We found that envisor demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.