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

processenv

Package Overview
Dependencies
Maintainers
5
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

processenv - npm Package Compare versions

Comparing version 2.0.1 to 3.0.0

build/lib/normalize.d.ts

14

package.json
{
"name": "processenv",
"version": "2.0.1",
"version": "3.0.0",
"description": "processenv parses environment variables.",

@@ -23,10 +23,10 @@ "contributors": [

],
"main": "build/lib/processEnv.js",
"types": "build/lib/processEnv.d.ts",
"main": "build/lib/processenv.js",
"types": "build/lib/processenv.d.ts",
"dependencies": {},
"devDependencies": {
"assertthat": "4.0.1",
"nodeenv": "2.0.0",
"roboter": "7.1.5",
"uuidv4": "5.0.0"
"assertthat": "4.0.2",
"nodeenv": "3.0.0",
"roboter": "9.1.0",
"uuidv4": "5.0.1"
},

@@ -33,0 +33,0 @@ "repository": {

@@ -26,3 +26,3 @@ # processenv

```javascript
const processenv = require('processenv').default;
const { processenv } = require('processenv');
```

@@ -33,3 +33,3 @@

```typescript
import processenv from 'processenv';
import { processenv } from 'processenv';
```

@@ -55,2 +55,14 @@

Alternatively, you may also provide a function which returns the default values. This is useful, e.g. if you want to lazily evaluate a value:
```javascript
const port = processenv('PORT', () => 3000);
```
If you want to use an asynchronous function, please note that you must `await` the call to `processenv`:
```javascript
const port = await processenv('PORT', async () => 3000);
```
#### Using the `||` operator

@@ -57,0 +69,0 @@

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