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

env-var

Package Overview
Dependencies
Maintainers
1
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

env-var - npm Package Compare versions

Comparing version 2.3.1 to 2.3.2

env-var.d.ts

7

package.json
{
"name": "env-var",
"version": "2.3.1",
"version": "2.3.2",
"description": "programmatic wrapper for process.env with support for defaults",

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

"license": "MIT",
"files": ["lib/"],
"files": [
"lib/",
"env-var.d.ts"
],
"bugs": {

@@ -31,0 +34,0 @@ "url": "https://github.com/evanshortiss/env-var/issues"

@@ -215,4 +215,12 @@ # env-var

## TypeScript
To use with TypeScript, just import it like this:
```ts
import env from 'get-env';
const stringVar = env('STRING').required().asString();
```
## Contributors
* @MikeyBurkman
* @itavy
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