Comparing version 0.4.2 to 0.5.0
{ | ||
"name": "101", | ||
"version": "0.4.2", | ||
"version": "0.5.0", | ||
"description": "common javascript utils that can be required selectively that assume es5+", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -28,2 +28,27 @@ 101 [![Build Status](https://travis-ci.org/tjmehta/101.svg?branch=master)](https://travis-ci.org/tjmehta/101) | ||
## envIs | ||
Functional version of str === process.env.NODE_ENV | ||
```js | ||
var exists = require('101/exists'); | ||
// process.env.NODE_ENV = development | ||
envIs('development'); // true | ||
envIs('production'); // false | ||
envIs('staging', 'production'); // false | ||
envIs('development', 'production'); // true | ||
``` | ||
## equals | ||
Functional version of === , supports partial functionality | ||
```js | ||
var exists = require('101/exists'); | ||
exists(1, 1); // true | ||
[1,2,3].some(equals(1)); // true | ||
exists(1, '1'); // false | ||
``` | ||
## exists | ||
@@ -30,0 +55,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
54716
50
1614
320
4