Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

How to disable the output in hook.io

How to disable the output in hook.io

Problem

I'm using hook.io programmatically for tiny application servers. On every connect and event it prints stuff, but I want only error outputs. Is there any way to silence the hook objects?

Problem courtesy of: K..

Solution

Yes.

Try using the --silent mode on the command line.

Like all hook.io options, you can also pass this into your hook constructor.

 new Hook({silent: true}
Solution courtesy of: Marak

Discussion

View additional discussion.



This post first appeared on Node.js Recipes, please read the originial post: here

Share the post

How to disable the output in hook.io

×

Subscribe to Node.js Recipes

Get updates delivered right to your inbox!

Thank you for your subscription

×