Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

parse-keys

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

parse-keys

JSON.parse only object keys

  • 1.3.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
123
increased by32.26%
Maintainers
1
Weekly downloads
 
Created
Source

parse-keys

JSON.parse only object keys

Install

$ npm i parse--keys --save

Usage

//server.js
'use strict'

var parse = require('parse-keys');
var env = parse(process.env, ['PORT']);

console.log(process.env.PORT) === "4000"
//while
console.log(env.PORT) === 4000

$ PORT=4000 node server.js

License

MIT

Keywords

FAQs

Package last updated on 16 Jun 2015

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

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