Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

nenv

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nenv - npm Package Compare versions

Comparing version 0.5.2 to 0.5.3

2

package.json
{
"name": "nenv",
"description": "Node development environment manager",
"version": "0.5.2",
"version": "0.5.3",
"author": "muji <noop@xpm.io>",

@@ -6,0 +6,0 @@ "main": "lib/index.js",

@@ -55,3 +55,4 @@ Table of Contents

// do something when the specified environment is invalid
}else if(env.test) {
// and the debug flag is not set
}else if(env.test && !env.debug) {
// do something for test environment

@@ -70,3 +71,8 @@ }

* `set`: A custom function for setting the environment value (optional).
* `dbg`: A string for the debug flag environment variable, default is `DEBUG`.
The returned query object maintains a special `debug` property which is a boolean indicating whether the `DEBUG` environment variable has been set, if this conflicts with an environment name either change the `environments` or `dbg` options.
The query object is maintained in a `cache` and will be returned on subsequenct calls which is typically desirable, if you need a fresh query `delete nenv.cache`.
### env([value])

@@ -194,2 +200,3 @@

"PRODUCTION": "production",
"debug": false,
"value": "devel",

@@ -196,0 +203,0 @@ "current": "devel",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc