Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including noop2 with all npm packages installed. Try it out:

var noop2 = require("noop2")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

noop2 v2.0.0

No operation as a module™

noop2

NPM version build status Test coverage Downloads

No operation as a module™. The long awaited successor to noop. Noop2 does even less than its predecessor, and is 100% tested to guarantee nothing happens.

Installation

npm install noop2

Usage

var noop = require('noop2');

noop();
// nothing happened

Why?

This is both a joke and actually useful. Obviously we might be taking npm a bit too far by bundling this as a module, but when running tests it's sometimes nice to be able to import an empty function if only to keep style consistent. So here you have it.

See also

License

MIT

Metadata

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free