Comparing version 6.1.0 to 6.2.0-rc1
{ | ||
"name": "dotenv", | ||
"version": "6.1.0", | ||
"version": "6.2.0-rc1", | ||
"description": "Loads environment variables from .env file", | ||
"main": "lib/main.js", | ||
"scripts": { | ||
"dtslint": "dtslint types", | ||
"flow": "flow", | ||
"lint": "standard", | ||
"postlint": "standard-markdown", | ||
"pretest": "npm run lint", | ||
"test": "tap tests/*.js --100", | ||
"lint": "standard", | ||
"postlint": "npm run lint-md", | ||
"lint-md": "standard-markdown" | ||
"test": "tap tests/*.js --100" | ||
}, | ||
@@ -30,3 +30,5 @@ "repository": { | ||
"devDependencies": { | ||
"flow-bin": "^0.82.0", | ||
"@types/node": "^10.12.0", | ||
"dtslint": "^0.3.0", | ||
"flow-bin": "^0.84.0", | ||
"sinon": "^6.3.5", | ||
@@ -45,3 +47,4 @@ "standard": "^12.0.1", | ||
] | ||
} | ||
}, | ||
"types": "types" | ||
} |
@@ -8,3 +8,3 @@ # dotenv | ||
[![BuildStatus](https://img.shields.io/travis/motdotla/dotenv/master.svg?style=flat-square)](https://travis-ci.org/motdotla/dotenv) | ||
[![Build status](https://ci.appveyor.com/api/projects/status/rnba2pyi87hgc8xw/branch/master?svg=true)](https://ci.appveyor.com/project/maxbeatty/dotenv/branch/master) | ||
[![Build status](https://ci.appveyor.com/api/projects/status/github/motdotla/dotenv?svg=true)](https://ci.appveyor.com/project/motdotla/dotenv/branch/master) | ||
[![NPM version](https://img.shields.io/npm/v/dotenv.svg?style=flat-square)](https://www.npmjs.com/package/dotenv) | ||
@@ -95,4 +95,3 @@ [![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/feross/standard) | ||
You may specify a custom path if your file containing environment variables is | ||
named or located differently. | ||
You may specify a custom path if your file containing environment variables is located elsewhere. | ||
@@ -107,4 +106,3 @@ ```js | ||
You may specify the encoding of your file containing environment variables | ||
using this option. | ||
You may specify the encoding of your file containing environment variables. | ||
@@ -169,2 +167,3 @@ ```js | ||
``` | ||
- inner quotes are maintained (think JSON) (`JSON={"foo": "bar"}` becomes `{JSON:"{\"foo\": \"bar\"}"`) | ||
@@ -200,3 +199,3 @@ - whitespace is removed from both ends of the value (see more on [`trim`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/Trim)) (`FOO=" some value "` becomes `{FOO: 'some value'}`) | ||
const envConfig = dotenv.parse(fs.readFileSync('.env.override')) | ||
for (var k in envConfig) { | ||
for (let k in envConfig) { | ||
process.env[k] = envConfig[k] | ||
@@ -213,4 +212,4 @@ } | ||
```js | ||
var dotenv = require('dotenv') | ||
var variableExpansion = require('dotenv-expand') | ||
const dotenv = require('dotenv') | ||
const variableExpansion = require('dotenv-expand') | ||
const myEnv = dotenv.config() | ||
@@ -217,0 +216,0 @@ variableExpansion(myEnv) |
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
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
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
21361
7
181
2
288