Comparing version 1.1.0 to 2.0.0
{ | ||
"name": "nodeenv", | ||
"version": "1.1.0", | ||
"version": "2.0.0", | ||
"description": "nodeenv enables tests to control Node.js environment variables.", | ||
@@ -17,9 +17,15 @@ "contributors": [ | ||
"email": "jan-hendrik.grundhoefer@thenativeweb.io" | ||
}, | ||
{ | ||
"name": "Hannes Leutloff", | ||
"email": "hannes.leutloff@thenativeweb.io" | ||
} | ||
], | ||
"main": "lib/nodeenv.js", | ||
"main": "build/lib/nodeenv.js", | ||
"types": "build/lib/nodeenv.d.ts", | ||
"dependencies": {}, | ||
"devDependencies": { | ||
"assertthat": "3.2.0", | ||
"roboter": "6.1.0" | ||
"@types/node": "12.7.2", | ||
"assertthat": "4.0.1", | ||
"roboter": "7.1.1" | ||
}, | ||
@@ -26,0 +32,0 @@ "repository": { |
@@ -5,2 +5,12 @@ # nodeenv | ||
## Status | ||
| Category | Status | | ||
| ---------------- | ------------------------------------------------------------------------------------------------------------------------------------------ | | ||
| Version | [](https://www.npmjs.com/package/nodeenv) | | ||
| Dependencies |  | | ||
| Dev dependencies |  | | ||
| Build | [](https://circleci.com/gh/thenativeweb/nodeenv/tree/master) | | ||
| License |  | | ||
## Installation | ||
@@ -17,5 +27,11 @@ | ||
```javascript | ||
const nodeenv = require('nodeenv'); | ||
const nodeenv = require('nodeenv').default; | ||
``` | ||
If you use TypeScript, use the following code instead: | ||
```typescript | ||
import nodeenv from 'nodeenv'; | ||
``` | ||
Then, to set environment variables, call the `nodeenv` function and provide an object whose keys are the environment variables' names and the values are their values. If you set a value to `undefined`, the environment variable will be removed. | ||
@@ -66,12 +82,1 @@ | ||
``` | ||
## License | ||
The MIT License (MIT) | ||
Copyright (c) 2013-2019 the native web. | ||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | ||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | ||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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 3 instances in 1 package
7822
8
106
80
0
3
2