
Product
Introducing Pull Request Stories to Help Security Teams Track Supply Chain Risks
Socket’s new Pull Request Stories give security teams clear visibility into dependency risks and outcomes across scanned pull requests.
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
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.
Product
Socket’s new Pull Request Stories give security teams clear visibility into dependency risks and outcomes across scanned pull requests.
Research
/Security News
npm author Qix’s account was compromised, with malicious versions of popular packages like chalk-template, color-convert, and strip-ansi published.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.