{"_id":"noop","_rev":"4665432","name":"noop","description":"Provides a few global functions such as `noop`, `throwop`, and `doop`","dist-tags":{"latest":"1.0.1"},"maintainers":[{"name":"coolaj86","email":""}],"time":{"modified":"2026-04-10T22:38:03.000Z","created":"2011-01-11T22:55:37.410Z","1.0.1":"2021-08-28T06:18:31.729Z","1.0.0":"2021-08-28T06:15:55.615Z","0.2.2":"2011-02-27T19:30:32.151Z","0.2.0":"2011-01-11T22:55:37.410Z"},"users":{},"author":{"name":"AJ ONeal","email":"coolaj86@gmail.com","url":"https://coolaj86.com/"},"repository":{"type":"git","url":"git+https://github.com/coolaj86/noop.js.git"},"versions":{"1.0.1":{"name":"noop","version":"1.0.1","description":"Provides a few global functions such as `noop`, `throwop`, and `doop`","main":"index.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"git+https://github.com/coolaj86/noop.js.git"},"keywords":["util","noop","throwop","doop","no-op"],"author":{"name":"AJ ONeal","email":"coolaj86@gmail.com","url":"https://coolaj86.com/"},"license":"MIT OR CC0-1.0","bugs":{"url":"https://github.com/coolaj86/noop.js/issues"},"homepage":"https://github.com/coolaj86/noop.js#readme","devDependencies":{"@types/node":"^16.7.4"},"gitHead":"77ad7f28974dcd87eb0b91be9db9caf544356ad0","_id":"noop@1.0.1","_nodeVersion":"16.6.2","_npmVersion":"7.20.3","dist":{"shasum":"9e85b7731d3bbdfe9e3c70a4d7f66c959c2287b6","size":1393,"noattachment":false,"key":"/noop/-/noop-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/noop/download/noop-1.0.1.tgz"},"_npmUser":{"name":"coolaj86","email":"coolaj86@gmail.com"},"directories":{},"maintainers":[{"name":"coolaj86","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/noop_1.0.1_1630131511610_0.3456540055139983"},"_hasShrinkwrap":false,"publish_time":1630131511729,"_cnpm_publish_time":1630131511729,"_cnpmcore_publish_time":"2021-12-16T22:27:39.639Z"},"1.0.0":{"name":"noop","version":"1.0.0","description":"Provides a few global functions such as `noop`, `throwop`, and `doop`","main":"index.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"git+https://github.com/coolaj86/noop.js.git"},"keywords":["util","noop","throwop","doop","no-op"],"author":{"name":"AJ ONeal","email":"coolaj86@gmail.com","url":"https://coolaj86.com/"},"license":"MIT OR CC0-1.0","bugs":{"url":"https://github.com/coolaj86/noop.js/issues"},"homepage":"https://github.com/coolaj86/noop.js#readme","devDependencies":{"@types/node":"^16.7.4"},"gitHead":"6fa4e4d5a1358611257c211a64e7d3b14868e5ad","_id":"noop@1.0.0","_nodeVersion":"16.6.2","_npmVersion":"7.20.3","dist":{"shasum":"55058b4bdc87e73e1008e599a5f857a9c807beed","size":1351,"noattachment":false,"key":"/noop/-/noop-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/noop/download/noop-1.0.0.tgz"},"_npmUser":{"name":"coolaj86","email":"coolaj86@gmail.com"},"directories":{},"maintainers":[{"name":"coolaj86","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/noop_1.0.0_1630131355488_0.06501787741000298"},"_hasShrinkwrap":false,"publish_time":1630131355615,"_cnpm_publish_time":1630131355615,"_cnpmcore_publish_time":"2021-12-16T22:27:39.862Z"},"0.2.2":{"name":"noop","description":"Provides a few global functions such as `noop`, `throwop`, and `doop`","url":"http://github.com/coolaj86/javascript-noop/","keywords":["util"],"author":{"name":"AJ ONeal","email":"coolaj86@gmail.com"},"contributors":[],"dependencies":{},"version":"0.2.2","_id":"noop@0.2.2","engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"0.2.18","_nodeVersion":"v0.4.1","directories":{},"files":[""],"_defaultsLoaded":true,"dist":{"shasum":"868b86cd3a26af8c7d4788d3fe923d586870909b","size":621,"noattachment":false,"key":"/noop/-/noop-0.2.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/noop/download/noop-0.2.2.tgz"},"publish_time":1298835032151,"maintainers":[{"name":"coolaj86","email":""}],"_hasShrinkwrap":false,"_cnpm_publish_time":1298835032151,"_cnpmcore_publish_time":"2021-12-16T22:27:40.069Z"},"0.2.0":{"name":"noop","description":"Provides a few global functions such as `noop`, `throwop`, and `doop`","url":"http://github.com/coolaj86/javascript-noop/","keywords":["util"],"author":{"name":"AJ ONeal","email":"coolaj86@gmail.com"},"contributors":[],"dependencies":{},"lib":"lib","main":"./lib/index","version":"0.2.0","_id":"noop@0.2.0","engines":{"node":"*"},"_nodeSupported":true,"_npmVersion":"0.2.3-6","_nodeVersion":"v0.2.0","dist":{"shasum":"ec548e36be7fc6470cd16a52fd13cd4f0bc35a4c","size":881,"noattachment":false,"key":"/noop/-/noop-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/noop/download/noop-0.2.0.tgz"},"directories":{},"publish_time":1294786537410,"maintainers":[{"name":"coolaj86","email":""}],"_hasShrinkwrap":false,"_cnpm_publish_time":1294786537410,"_cnpmcore_publish_time":"2021-12-16T22:27:40.272Z"}},"readme":"# node-noop\n\nProvides a few global functions such as `noop`, `throwop`, and `doop`\n\n```bash\nnpm install noop@v1\n```\n\n```js\nrequire(\"noop\");\n```\n\n# Features\n\n- [x] Works with Promises and Thunks\n- [x] Faster than `Object` (always `true`-y)\n- [x] More predictable than `Boolean` (sometimes `false`-y)\n- [x] Linted with TypeScript, JSHint, and Prettier\n\n# API\n\n## `global.noop`\n\nDoes nothing\n\n```js\nfunction noop() {}\n```\n\n## `global.throwop(err)`\n\nThrows if `err` is `true`-y\n\n```js\nfunction throwop(err) {\n  if (err) {\n    throw err;\n  }\n}\n```\n\n## `global.doop(callback)`\n\nCalls `callback` or `noop`\n\n```js\nfunction doop(callback, args, context) {\n  if (\"function\" === typeof callback) {\n    callback.apply(context, args);\n  }\n}\n```\n\nSimilar function signature to `setTimeout`.\n\n# LICENSE\n\nMIT OR CC0-1.0 (Public Domain)\n\nWritten in 2011 by AJ ONeal <coolaj86@gmail.com> \\\nTo the extent possible under law, the author(s) have dedicated all copyright \\\nand related and neighboring rights to this software to the public domain \\\nworldwide. This software is distributed without any warranty.\n\nYou should have received a copy of the CC0 Public Domain Dedication along with \\\nthis software. If not, see <https://creativecommons.org/publicdomain/zero/1.0/>.\n","_attachments":{},"homepage":"https://github.com/coolaj86/noop.js#readme","bugs":{"url":"https://github.com/coolaj86/noop.js/issues"},"license":"MIT OR CC0-1.0"}