New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

nodeenv

Package Overview
Dependencies
Maintainers
1
Versions
90
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nodeenv - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

2

lib/nodeenv.js
'use strict';
var nodeenv = function (environment, callback) {
if (!environment) { throw new Error('environment is missing.'); }
if (environment === undefined) { throw new Error('environment is missing.'); }
if (!callback) { throw new Error('callback is missing.'); }

@@ -6,0 +6,0 @@

{
"name": "nodeenv",
"version": "0.0.1",
"version": "0.0.2",
"description": "nodeenv enables tests to control the NODE_ENV variable.",

@@ -5,0 +5,0 @@ "author": "Golo Roden <golo.roden@thenativeweb.io> (http://www.thenativeweb.io)",

@@ -18,2 +18,8 @@ 'use strict';

test('does not throw an exception if an empty NODE_ENV value is given.', function () {
assert.that(function () {
nodeenv('', function () {});
}, is.not.throwing());
});
test('throws an exception if no callback is given.', function () {

@@ -20,0 +26,0 @@ assert.that(function () {

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