1.0.0 • Published 9 years ago

node-noop v1.0.0

Weekly downloads
14,616
License
BSD-2-Clause
Repository
github
Last release
9 years ago

node-noop

Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away.

  • Antoine de Saint-Exupery

Installation

npm install node-noop

Usage

var noop = require('node-noop').noop;
require('fs').writeFile('file.out',"Ignore write failure",noop);

Alternatives

The npm package noop (github here) already has this basic functionality, but it doesn't do it in a very node-like way. He just sticks the noop function on the global scope when you require it.