Comparing version 0.5.1 to 0.5.2
@@ -31,6 +31,7 @@ var defaults = ['test', 'devel', 'stage', 'production']; | ||
* @param set A custom set function. | ||
* @param dbg String name of an environment variable that flags debugging. | ||
* | ||
* @return An environment query object. | ||
*/ | ||
function nenv(available, get, set) { | ||
function nenv(available, get, set, dbg) { | ||
@@ -48,2 +49,4 @@ if(nenv.cache && !arguments.length) { | ||
dbg = dbg || 'DEBUG'; | ||
// last arg is get function | ||
@@ -127,2 +130,4 @@ if(args.length && typeof args[0] !== 'function') { | ||
query.debug = Boolean(process.env[dbg]); | ||
// initial value | ||
@@ -129,0 +134,0 @@ query.value = get(); |
{ | ||
"name": "nenv", | ||
"description": "Node development environment manager", | ||
"version": "0.5.1", | ||
"stability": "stable", | ||
"version": "0.5.2", | ||
"author": "muji <noop@xpm.io>", | ||
"main": "lib/index.js", | ||
"license": "MIT", | ||
"repository": { | ||
"type": "git", | ||
"url": "git://github.com/socialally/nenv.git" | ||
"url": "git://github.com/tmpfs/nenv.git" | ||
}, | ||
@@ -19,2 +19,3 @@ "keywords": [ | ||
"chai": "~3.2.0", | ||
"coveralls": "~2.11.6", | ||
"istanbul": "~0.3.17", | ||
@@ -24,2 +25,3 @@ "mocha": "~2.2.5" | ||
"scripts": { | ||
"lint": "jshint . && jscs .", | ||
"clean": "rm -rf coverage target", | ||
@@ -29,3 +31,4 @@ "docs": "npm run readme", | ||
"test": "NODE_ENV=test mocha test/spec", | ||
"cover": "NODE_ENV=test istanbul cover --root lib _mocha -- test/spec" | ||
"cover": "NODE_ENV=test istanbul cover --root lib _mocha -- test/spec", | ||
"coveralls": "cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js" | ||
}, | ||
@@ -39,9 +42,5 @@ "mdp": { | ||
"toc": "Table of Contents", | ||
"base": "https://github.com/socialally/nenv", | ||
"base": "https://github.com/tmpfs/nenv", | ||
"partial": [ | ||
{ | ||
"ref": "stability", | ||
"format": "> `Stability: %s`" | ||
}, | ||
{ | ||
"inc": [ | ||
@@ -48,0 +47,0 @@ "introduction.md", |
@@ -26,2 +26,4 @@ Table of Contents | ||
* [Test](#test) | ||
* [Cover](#cover) | ||
* [Lint](#lint) | ||
* [Readme](#readme) | ||
@@ -33,3 +35,5 @@ * [License](#license) | ||
> `Stability: stable`. | ||
[<img src="https://travis-ci.org/tmpfs/nenv.svg" alt="Build Status">](https://travis-ci.org/tmpfs/nenv) | ||
[<img src="http://img.shields.io/npm/v/nenv.svg" alt="npm version">](https://npmjs.org/package/nenv) | ||
[<img src="https://coveralls.io/repos/tmpfs/nenv/badge.svg?branch=master&service=github&v=1" alt="Coverage Status">](https://coveralls.io/github/tmpfs/nenv?branch=master). | ||
@@ -174,3 +178,3 @@ Utility for mananging node development environments. | ||
See [defaults.js](https://github.com/socialally/nenv/blob/master/defaults.js). | ||
See [defaults.js](https://github.com/tmpfs/nenv/blob/master/defaults.js). | ||
@@ -232,5 +236,21 @@ ```javascript | ||
### Cover | ||
Run the test specifications and generate code coverage: | ||
``` | ||
npm run cover | ||
``` | ||
### Lint | ||
Run the source tree through [jshint](http://jshint.com) and [jscs](http://jscs.info): | ||
``` | ||
npm run lint | ||
``` | ||
### Readme | ||
Generate the project readme file (requires [mdp](https://github.com/freeformsystems/mdp)): | ||
Generate the project readme file (requires [mdp](https://github.com/tmpfs/mdp)): | ||
@@ -243,8 +263,10 @@ ``` | ||
Everything is [MIT](http://en.wikipedia.org/wiki/MIT_License). Read the [license](https://github.com/socialally/nenv/blob/master/LICENSE) if you feel inclined. | ||
Everything is [MIT](http://en.wikipedia.org/wiki/MIT_License). Read the [license](https://github.com/tmpfs/nenv/blob/master/LICENSE) if you feel inclined. | ||
Generated by [mdp(1)](https://github.com/freeformsystems/mdp). | ||
Generated by [mdp(1)](https://github.com/tmpfs/mdp). | ||
[node]: http://nodejs.org | ||
[npm]: http://www.npmjs.org | ||
[mdp]: https://github.com/freeformsystems/mdp | ||
[mdp]: https://github.com/tmpfs/mdp | ||
[jshint]: http://jshint.com | ||
[jscs]: http://jscs.info |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
14155
9
158
268
4