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

feedback

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

feedback - npm Package Compare versions

Comparing version 0.2.0 to 0.3.0

lib/feedback.js

6

package.json
{
"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
```
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