parse-keys
JSON.parse only object keys
Last updated 6 years ago by zippyui .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install parse-keys 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.3.0                                ...           latest (6 years ago)

6 Versions

  • 1.3.0                                ...           6 years ago
  • 1.2.1                                ...           6 years ago
  • 1.2.0                                ...           6 years ago
  • 1.1.1                                ...           6 years ago
  • 1.1.0                                ...           6 years ago
  • 1.0.0                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 0
Last Month 1
Dependencies (2)
Dev Dependencies (0)
None
Dependents (1)

Copyright 2014 - 2017 © taobao.org |