Socket
Socket
Sign inDemoInstall

dotenv

Package Overview
Dependencies
Maintainers
4
Versions
86
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dotenv - npm Package Compare versions

Comparing version 6.1.0 to 6.2.0-rc1

types/index.d.ts

17

package.json
{
"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)

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