Comparing version 0.2.0 to 0.3.0
{ | ||
"name": "feedback", | ||
"version": "0.2.0", | ||
"version": "0.3.0", | ||
"description": "Fancier console.log for Node.js cli apps", | ||
"main": "index.js", | ||
"main": "lib/feedback.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
"test": "node test/index.js" | ||
}, | ||
@@ -9,0 +9,0 @@ "repository": { |
@@ -28,1 +28,24 @@ feedback | ||
``` | ||
## Unit Testing | ||
Feedback provides you with the ability to mute the output to the bash at any time. This is especially useful when you're writing unit tests. You can do this by: | ||
```javascript | ||
var feedback = require('feedback'); | ||
feedback.test; | ||
feedback.success('Muted message'); // This message won't get printed to the bash | ||
feedback.on('write', function (msg) { | ||
// Still have access each time a message | ||
// should have been written to the bash. | ||
}); | ||
``` | ||
## Run tests | ||
``` | ||
npm install | ||
npm test | ||
``` |
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
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
3274
54
2
51