New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

env-create

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

env-create - npm Package Compare versions

Comparing version 1.0.0 to 1.0.3

.travis.yml

5

lib/main.test.js

@@ -22,5 +22,6 @@ const fs = require("fs")

it("return status:true when everything works", () => {
const result = envCreate.load()
result.status.should.be.true
})
});
it("have default filename when no parameter passed", () => {

@@ -27,0 +28,0 @@ envCreate.load()

30

package.json
{
"name": "env-create",
"version": "1.0.0",
"version": "1.0.3",
"description": "Read in a .env.json file that contains valid JSON and assign top level properties to environment variables",
"repository": {
"type": "git",
"url": "https://github.com/Rolias/env-create"
"url": "https://github.com/Rolias/env-create.git"
},

@@ -12,3 +12,3 @@ "main": "lib/main.js",

"start": "node lib/main.js",
"test": "nyc mocha --use_strict \"lib/**/*.test.js\"",
"test": "nyc --reporter=text mocha --use_strict \"lib/**/*.test.js\" ",
"lint": "eslint lib --color"

@@ -18,2 +18,18 @@ },

"license": "GPL-3.0-or-later",
"keywords": [
"dotenv",
"env",
".env",
".env.json",
"environment",
"variables",
"json",
"jason",
"load",
"create",
"config",
"auth",
"secrets",
"load"
],
"devDependencies": {

@@ -25,3 +41,7 @@ "chai": "^4.2.0",

"sinon": "^7.2.7"
}
}
},
"engines": {
"node": ">=6"
},
"dependencies": {}
}

@@ -5,5 +5,9 @@ # env-create

## Installation
[![NPM version](https://img.shields.io/npm/v/env-create.svg?style=flat-square)](~https://www.npmjs.com/package/env-create~)
![BuildStatus](https://img.shields.io/travis/Rolias/env-create.svg)
![Coverage Status](https://img.shields.io/badge/coverage-100%25-brightgreen.svg)
`npm i env-create --save`
## Installation
`npm i env-create --save`
Although at this point you should have made `--save` your default

@@ -36,9 +40,12 @@

Example of full option object that can be passed in:
# Option usage
Using a relative path to go up one folder out of your project and into an ENV_VARS folder to get the file named `gsweet.env.json`
```javascript
{path:"/Some/Path/To/Your/json_env_file.json",
debug: true,
encoding:"utf8"}
require('env-create').load({path: "../ENV_VARS/gsweet.env.json", encode: "utf8", debug: "true"});)
const firstSecret = JSON.parse(process.env.secret1);
const secondSecret = JSON.parse(process.env.secret2);
```
```

@@ -45,0 +52,0 @@ ## Acknowledgement

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