Comparing version 2.3.1 to 2.3.2
{ | ||
"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 |
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
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
13679
6
185
226