GitXplorerGitXplorer
r

parse-keys

public
0 stars
1 forks
0 issues

Commits

List of commits on branch master.
Unverified
25c9c91b2a692d57b423bd7ac0618d02fba75c98

1.3.0

rradubrehar committed 10 years ago
Unverified
8e9444d2b3eed1740f53fe8114589a9e6a308d2b

Fix undefined keys

rradubrehar committed 10 years ago
Unverified
2490fe66aa0feeda3c944f637a940b57f57c8e81

1.2.1

rradubrehar committed 10 years ago
Unverified
f1fce55cf4a1ba1205b040a51d5f7fb5dfc5615c

Add Array.isArray check for keys

rradubrehar committed 10 years ago
Unverified
97243aa8cb80af3fd403e7f4a02ad485cd22deff

1.2.0

rradubrehar committed 10 years ago
Unverified
b06da288d64dbeb3485822f43060aa6ba4e4ed17

Add keys filtering to only return own keys

rradubrehar committed 10 years ago

README

The README file for this repository.

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