{"_id":"nop","_rev":"13-62315ee325f4f75ef6e67befa410e4da","name":"nop","description":"library for providing a function that does nothing; it's like super useful","dist-tags":{"latest":"1.0.0"},"versions":{"0.0.0":{"name":"nop","version":"0.0.0","description":"library for providing a function that does nothing; it's like super useful","main":"index.js","directories":{"test":"test"},"scripts":{"test":"./node_modules/mocha/bin/mocha"},"repository":{"type":"git","url":"git://github.com/supershabam/nop"},"keywords":["nop","noop","no-op","useless","wtf"],"author":{"name":"Ian Hansen"},"license":"MIT","dependencies":{},"devDependencies":{"mocha":"~1.4.2","should":"~1.1.0"},"_id":"nop@0.0.0","dist":{"shasum":"f43ef7400a4d511e1bc933453e6c5df7350fa010","tarball":"https://registry.npmjs.org/nop/-/nop-0.0.0.tgz","integrity":"sha512-4lySSu4M+/gf4sFi7HtgDvLcC9UOk+/zsMwzv4iq9ooxL+0zl1pyUmuwxfb1nMBqGuzSuvC/4wQSDjhAJtXQ1Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICEVyxa5+1eRFh3MifAEzsPeZHOVfOG49l5IEBSjULvQAiEAoEI25Vv+cxsjuHtI1lZM2AU/BuAeyFvGxtQqHgQBuG4="}]},"maintainers":[{"name":"supershabam","email":"ian@supershabam.com"}]},"1.0.0":{"name":"nop","version":"1.0.0","description":"library for providing a function that does nothing; it's like super useful","main":"index.js","directories":{"test":"test"},"scripts":{"test":"./node_modules/mocha/bin/mocha"},"repository":{"type":"git","url":"git://github.com/supershabam/nop"},"keywords":["nop","noop","no-op","useless","wtf"],"author":{"name":"Ian Hansen"},"license":"MIT","dependencies":{},"devDependencies":{"mocha":"~1.4.2","should":"~1.1.0"},"bugs":{"url":"https://github.com/supershabam/nop/issues"},"homepage":"https://github.com/supershabam/nop","_id":"nop@1.0.0","dist":{"shasum":"cb46cf7e01574aa6390858149f66897afe53c9ca","tarball":"https://registry.npmjs.org/nop/-/nop-1.0.0.tgz","integrity":"sha512-XdkOuXGx0DTwlqb0DWTcDqelgU/F3YyZ+PTRaecpDVpkYskcnh3OeUYKfvjcRQ2D1diTIGxi/a3eHVjW5yPupQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDxLuSCVUaPn60gH8x6sXjRixndguLz+iFtKm/qaPN+bAiEAxa2ohbGdD7/L1Rt8/uTOelu8RyUYQQXj1rYdbQ+XZtI="}]},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"supershabam","email":"ian@supershabam.com"},"maintainers":[{"name":"supershabam","email":"ian@supershabam.com"}]}},"readme":"nop\n===\n\na library for providing a javascript function that does nothing; it's like super useful\n\n[![Build Status](https://secure.travis-ci.org/supershabam/nop.png?branch=master)](http://travis-ci.org/supershabam/nop)\n\n[![endorse](http://api.coderwall.com/supershabam/endorsecount.png)](http://coderwall.com/supershabam)\n\nuse case\n--------\nDid you know every time you create a do-nothing no-op function you're consuming \nmemory? You can literally save maybe a whole byte or two by using this nop library.\n\nAnybody who cares about being efficient and doesn't care about being rediculous should use this library.\n\nexamples\n-------\n\n### default callback\n```javascript\nvar nop = require('nop');\n\nfunction example(options) {\n  options = options || {};\n  options.success = options.success || nop;\n  options.error = options.error || nop;\n\n  // do stuff\n  options.success();\n}\n```\n\n### feel like calling a function, but don't want it to do anything and don't want to create it myself\n```javascript\nvar nop = require('nop');\n\nvar a = 'a';\nvar b = 'b';\n// do you think I should call a function now?\nvar c = 'c';\n// nah, I'll wait\nvar d = 'd';\nvar e = 'e';\nvar f = 'f';\n// maybe now\nnop();\nvar g = 'g';\n// can I do another?\nvar h = 'h';\nvar j = 'j';\n// sure... I guess\nnop();\nnop();\n// hey, you were supposed to just do one\nvar i = 'i';\n// sorry\nvar j = 'j';\n// alright, then, as long as you're sorry\nvar k = 'ok';\n```\n","maintainers":[{"name":"supershabam","email":"ian@supershabam.com"}],"time":{"modified":"2022-06-22T05:07:26.552Z","created":"2012-09-12T23:58:22.158Z","0.0.0":"2012-09-12T23:58:23.305Z","1.0.0":"2014-10-23T04:39:37.715Z"},"author":{"name":"Ian Hansen"},"repository":{"type":"git","url":"git://github.com/supershabam/nop"},"users":{"chilts":true,"jarofghosts":true,"konieckropka":true,"hiztmine":true},"keywords":["nop","noop","no-op","useless","wtf"],"license":"MIT","readmeFilename":"README.md","homepage":"https://github.com/supershabam/nop","bugs":{"url":"https://github.com/supershabam/nop/issues"}}