{"_id":"next-pow-2","_rev":"3-97f74409f5a5f69c0f02d791e6980260","name":"next-pow-2","description":"Rounds an integer up to a power of 2","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"next-pow-2","version":"1.0.0","description":"Rounds an integer up to a power of 2","main":"np2.js","directories":{"example":"example","test":"test"},"dependencies":{},"devDependencies":{"tape":"^4.0.0"},"scripts":{"test":"tape test/*.js"},"repository":{"type":"git","url":"https://github.com/mikolalysenko/next-pow-2.git"},"keywords":["next","power","of","2","bit","twiddle","hack","rounding","up"],"author":{"name":"Mikola Lysenko"},"license":"MIT","bugs":{"url":"https://github.com/mikolalysenko/next-pow-2/issues"},"homepage":"https://github.com/mikolalysenko/next-pow-2","gitHead":"c1d99126d653cf2283b4637723624368de58dfbb","_id":"next-pow-2@1.0.0","_shasum":"cb5c2f1dae040c56cdd5cda1dc5c6a3a338f4367","_from":".","_npmVersion":"2.7.4","_nodeVersion":"0.12.2","_npmUser":{"name":"mikolalysenko","email":"mikolalysenko@gmail.com"},"dist":{"shasum":"cb5c2f1dae040c56cdd5cda1dc5c6a3a338f4367","tarball":"https://registry.npmjs.org/next-pow-2/-/next-pow-2-1.0.0.tgz","integrity":"sha512-q+HqJpSkvVqOo75HUY5h1JurDXxHMvjPi5INOfZr3QiSlYUPBzRs6JZx8VPWf7pf18yg6NHUWvwfUILGxJ8ekg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCYg1yozIRrW8cmkp3cEjoeYW9jfCKHMrBCr4BBhHj4pwIgcrn512jCPKbdqp9O1Qye2Tfwv6HuS+2o8zvW0IOVWsc="}]},"maintainers":[{"name":"mikolalysenko","email":"mikolalysenko@gmail.com"}]}},"readme":"next-pow-2\n==========\nRound a nonnegative integer up to the next power of 2.\n\n# Example\n\n```javascript\nvar np2 = require('next-pow-2')\n\nfor(var i=0; i<=10; ++i) {\n  console.log(i + ' rounds to ' + np2(i))\n}\n```\n\n#### Output\n\n```\n0 rounds to 1\n1 rounds to 1\n2 rounds to 2\n3 rounds to 4\n4 rounds to 4\n5 rounds to 8\n6 rounds to 8\n7 rounds to 8\n8 rounds to 8\n9 rounds to 16\n10 rounds to 16\n```\n\n# Install\n\n```\nnpm i next-pow-2\n```\n\n# API\n\n#### `require('next-pow-2')(x)`\nRounds `x` to the next power of 2\n\n* `x` is a nonnegative integer less than 2^32\n\n**Returns** the next power of 2 after `x`\n\n# License\n(c) 2015 Mikola Lysenko. MIT License\n","maintainers":[{"name":"mikolalysenko","email":"mikolalysenko@gmail.com"}],"time":{"modified":"2022-06-21T02:30:33.443Z","created":"2015-06-22T21:02:22.411Z","1.0.0":"2015-06-22T21:02:22.411Z"},"homepage":"https://github.com/mikolalysenko/next-pow-2","keywords":["next","power","of","2","bit","twiddle","hack","rounding","up"],"repository":{"type":"git","url":"https://github.com/mikolalysenko/next-pow-2.git"},"author":{"name":"Mikola Lysenko"},"bugs":{"url":"https://github.com/mikolalysenko/next-pow-2/issues"},"license":"MIT","readmeFilename":"README.md"}