New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

envcrud

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

envcrud

Node module to manage .env file Includes small example webserver to demonstrate use via REST

latest
Source
npmnpm
Version
1.1.0
Version published
Maintainers
1
Created
Source

envcrud

Node module to manage .env file Includes small example webserver to demonstrate use via REST

  • Postman API documentation can be found here: https://documenter.getpostman.com/view/617134/envcrud/2MrYL6
  • Postman API collection is included: envcrud.postman_collection.json

Use

npm install https://github.com/genecyber/envcrud.git

npm start

> node server.js

Running on http://localhost:3002
var Env = require("envcrud").Env
var env = new Env(".env")

List all entries

env.loadVariables(function(envArray){
    console.log(envArray)
})

Get single entry

env.getVariable("foo", function(value){
    console.log({env: value})
})

Add or update entry

env.AddOrUpdate("foo", "new bar", function(newVar){
    console.log({success: true, msg: newVar})
})

Delete an entry

env.Delete("foo", function(msg){
    console.log({success: true, msg: msg})
})

FAQs

Package last updated on 17 Oct 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts