Skip to content

euank/node-noop

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

What it does

Magikarp uses splash attack

Installation

npm install node-noop

Usage

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

Reviews

"Everything that is wrong with the Node ecosystem." — An enlightened Reddit user

Alternatives

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