{"_id":"nextjs","_rev":"20-c6b4146c48a98aa9ba2b3c7fc54b674a","name":"nextjs","description":"The fastest async handler in node.js","dist-tags":{"latest":"0.0.3"},"versions":{"0.0.1":{"name":"nextjs","version":"0.0.1","description":"The fastest async handler.","keywords":["next","async","async handler"],"bugs":{"url":"http://github.com/adamhalasz/next/issues","email":"mail@adamhalasz.com"},"license":"MIT","author":{"name":"Halász Ádám","email":"mail@adamhalasz.com","url":"http://adamhalasz.com/"},"main":"nextjs","engines":{"node":">=0.8.21"},"_id":"nextjs@0.0.1","dist":{"shasum":"71c415897c825412aa453e9473a9a8b13e4f0e57","tarball":"https://registry.npmjs.org/nextjs/-/nextjs-0.0.1.tgz","integrity":"sha512-26jpm1vXpSZxhZw1a5T3QIpPdLLz54NroauH+lBtQbSBqwTkEUACLjeGzilcTlSd8/E+eYjpQ7S37l+h8Oz+cQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCG+U7j0BHYG0VDHns+hqt6K/cOUruvUrlsC6mz5/kpjQIgRCFd0iyA+0G2uEYrihRxQ23nsEHdkW2Y1CdepXQGCaU="}]},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"adamhalasz","email":"mail@adamhalasz.com"},"maintainers":[{"name":"adamhalasz","email":"mail@adamhalasz.com"}],"directories":{}},"0.0.2":{"name":"nextjs","version":"0.0.2","description":"The fastest async handler in node.js","keywords":["next","async","async handler","async functions"],"bugs":{"url":"http://github.com/adamhalasz/next/issues","email":"mail@adamhalasz.com"},"license":"MIT","author":{"name":"Halász Ádám","email":"mail@adamhalasz.com","url":"http://adamhalasz.com/"},"main":"index.js","engines":{"node":">=0.8.21"},"_id":"nextjs@0.0.2","dist":{"shasum":"7ef7c095366f96ed4ca3a60a861c05d76ab106b8","tarball":"https://registry.npmjs.org/nextjs/-/nextjs-0.0.2.tgz","integrity":"sha512-w1rOCMpCc7isgM068jDsVYvZEZz8QwO6Stb8B5EDpwN0FRuCu20895uMiNX0Uz14/8ZANrRGPb4GW1ggwO4Wtw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIExu8BdCf3LU/y8One18q2XVB9fdrwUWax+Hso2EffqiAiB5HSzte+STKLjSUSVjeY1+a0R81q3LoWsDrERnx8LPpw=="}]},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"adamhalasz","email":"mail@adamhalasz.com"},"maintainers":[{"name":"adamhalasz","email":"mail@adamhalasz.com"}],"directories":{}},"0.0.3":{"name":"nextjs","version":"0.0.3","description":"The fastest async handler in node.js","keywords":["next","async","async handler","async functions"],"bugs":{"url":"http://github.com/adamhalasz/next/issues","email":"mail@adamhalasz.com"},"license":"MIT","author":{"name":"Halász Ádám","email":"mail@adamhalasz.com","url":"http://adamhalasz.com/"},"main":"index.js","engines":{"node":">=0.8.21"},"_id":"nextjs@0.0.3","dist":{"shasum":"4f4d1d6a257be920d9b9649d4d9522c724a4e543","tarball":"https://registry.npmjs.org/nextjs/-/nextjs-0.0.3.tgz","integrity":"sha512-mYbDUo4/sRAZ8TqK63PCpYnFiLg7BICG/ot9+guOrUKd4/Fo71ZmEQ41IZbH6nqbQvG7SXTBuofJXAIWfNho0w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDW4GWvqrO5rJgN4lKB54nE0WDjJTonGdQwqoMet6APaAiATdq2/aKHxPHuw0yyg58r0URvvkfb4heawfavw2NjcEA=="}]},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"adamhalasz","email":"mail@adamhalasz.com"},"maintainers":[{"name":"adamhalasz","email":"mail@adamhalasz.com"}],"directories":{}}},"readme":"# Next  \nBecause asynchronous calls suck out your brain without a proper async handler. This one is just 4 lines yet it solves a huge issue.\n\n### Install\n```config\n\tnpm install nextjs\n```\n\n### How it works?\n1. Create a `Next Instance`: `var next = new Next(2, finish)`\n2. Then you call `next()` as many times as you specified in the `count`. In this example it is *2*.\n3. After `next` was called *2 times*, the `finish` function will be called.\n\n### Example\n```javascript\n\t// Include\n\tvar Next = require('nextjs');\n\t\n\t// CREATE a Next Instance\n\tvar next = new Next(2, finish);\n\t\n\t// Log Start\n\tconsole.log('start');\n\t\n\t// Will happen after 5 seconds passed\n\tsetTimeout(function(){ console.log('A'); next(); }, 5000); \n\t\n\t// Will happen after 2 seconds passed\n\tsetTimeout(function(){ console.log('B'); next(); }, 2000); \n\t\n\t// Will happen in the end after 5 seconds passed\n\tfunction finish(){ console.log('finished'); } \n\t\n\t// output result\n\t// 0 second => start\n\t// 2 second => B\n\t// 5 second => A\n\t// 5 second => finished\n```\n\n## Next parameters\n- **count**: the number of times you will have to call the `next()` instance. `required` `integer`\n- **finish**: finishing callback `required` `function`\n\n## Key features\n- It's just 4 lines - `0.16kb`\n- Easy to use\n- Its part of `dietjs`\n","maintainers":[{"name":"adamhalasz","email":"mail@adamhalasz.com"}],"time":{"modified":"2022-06-21T02:37:53.758Z","created":"2013-12-12T16:22:57.174Z","0.0.1":"2013-12-12T16:23:08.597Z","0.0.2":"2013-12-12T16:55:43.813Z","0.0.3":"2013-12-14T11:45:02.003Z"},"author":{"name":"Halász Ádám","email":"mail@adamhalasz.com","url":"http://adamhalasz.com/"},"readmeFilename":"Readme.md","users":{"tmurngon":true,"jarib":true}}