You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
unknown
0073d80258
|
2 years ago | |
---|---|---|
.. | ||
CHANGELOG.md | 2 years ago | |
LICENSE | 2 years ago | |
README.md | 2 years ago | |
index.js | 2 years ago | |
package.json | 2 years ago |
README.md
noop2
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.