{"_id":"@aureooms/js-bit","_rev":"2-06407abccb7f337f73c6753446357c23","name":"@aureooms/js-bit","description":"bit twiddling hacks code bricks for JavaScript","dist-tags":{"latest":"1.0.6"},"versions":{"1.0.6":{"license":"AGPL-3.0","description":"bit twiddling hacks code bricks for JavaScript","name":"@aureooms/js-bit","author":{"name":"aureooms"},"bugs":{"url":"https://github.com/aureooms/js-bit/issues"},"repository":{"type":"git","url":"git+https://github.com/aureooms/js-bit.git"},"homepage":"http://aureooms.github.io/js-bit/","devDependencies":{"aureooms-node-package":"^6.0.1","@aureooms/js-array":"^3.1.0"},"keywords":["binary","bit","bricks","hacks","javascript","js","twiddling"],"version":"1.0.6","scripts":{"test":"aureooms-node-package-test","doc":"groc","build":"aureooms-node-package-build"},"main":"js/dist/bit.js","dependencies":{},"gitHead":"32a3cc8855f6a0fb85d8b74e923ba329c4a309e3","_id":"@aureooms/js-bit@1.0.6","_shasum":"ce5ccdbc8451a30753b942282800f1db5ddb03b5","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.5.0","_npmUser":{"name":"aureooms","email":"aurelien.ooms@gmail.com"},"dist":{"shasum":"ce5ccdbc8451a30753b942282800f1db5ddb03b5","tarball":"https://registry.npmjs.org/@aureooms/js-bit/-/js-bit-1.0.6.tgz","integrity":"sha512-03E7CWwRYwmFnJqFnbti4QmkuR9zxNVAQutPHCKtJXOIiM3VtwnpT5Nc3GuTvXDyKWp3fqCPdszGNmYAGS/bPw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCo4pzZBm4zDgIedx+uA4VW+0hutPy1TfFuOB1/NOC6zQIgB9Bf6SzNHBATD242W5/YaoSA+jtJwwcqYoYCCuj2roo="}]},"maintainers":[{"name":"aureooms","email":"aurelien.ooms@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/js-bit-1.0.6.tgz_1487246518757_0.055473744636401534"}}},"readme":"[js-bit](http://aureooms.github.io/js-bit)\n==\n\nBit twiddling hacks code bricks for JavaScript.\n\n[![NPM license](http://img.shields.io/npm/l/@aureooms/js-bit.svg?style=flat)](https://raw.githubusercontent.com/aureooms/js-bit/master/LICENSE)\n[![NPM version](http://img.shields.io/npm/v/@aureooms/js-bit.svg?style=flat)](https://www.npmjs.org/package/@aureooms/js-bit)\n[![Bower version](http://img.shields.io/bower/v/@aureooms/js-bit.svg?style=flat)](http://bower.io/search/?q=@aureooms/js-bit)\n[![Build Status](http://img.shields.io/travis/aureooms/js-bit.svg?style=flat)](https://travis-ci.org/aureooms/js-bit)\n[![Coverage Status](http://img.shields.io/coveralls/aureooms/js-bit.svg?style=flat)](https://coveralls.io/r/aureooms/js-bit)\n[![Dependencies Status](http://img.shields.io/david/aureooms/js-bit.svg?style=flat)](https://david-dm.org/aureooms/js-bit#info=dependencies)\n[![devDependencies Status](http://img.shields.io/david/dev/aureooms/js-bit.svg?style=flat)](https://david-dm.org/aureooms/js-bit#info=devDependencies)\n[![Code Climate](http://img.shields.io/codeclimate/github/aureooms/js-bit.svg?style=flat)](https://codeclimate.com/github/aureooms/js-bit)\n[![NPM downloads per month](http://img.shields.io/npm/dm/@aureooms/js-bit.svg?style=flat)](https://www.npmjs.org/package/@aureooms/js-bit)\n[![GitHub issues](http://img.shields.io/github/issues/aureooms/js-bit.svg?style=flat)](https://github.com/aureooms/js-bit/issues)\n[![Inline docs](http://inch-ci.org/github/aureooms/js-bit.svg?branch=master&style=shields)](http://inch-ci.org/github/aureooms/js-bit)\n\nCan be managed through [duo](https://github.com/duojs/duo),\n[component](https://github.com/componentjs/component),\n[bower](https://github.com/bower/bower), or\n[npm](https://github.com/npm/npm).\n\n```js\nlet bit = require( \"@aureooms/js-bit\" ) ;\n```\n\nExample usage:\n\n```js\n/* Compute the sign of an integer */\nbit.sign(  0  ) ; // 0\nbit.sign( -67 ) ; // -1\nbit.sign( 432 ) ; // +1\n\n/* Compute the lexicographically next bit permutation */\nbit.next( 0b00101001 ) ; // 0b00101010\n```\n\nReferences:\n\n - https://graphics.stanford.edu/~seander/bithacks.html\n - https://github.com/boothj5/bit-twiddling/blob/master/basic.c\n","maintainers":[{"name":"aureooms","email":"aurelien.ooms@gmail.com"}],"time":{"modified":"2022-06-12T14:51:55.568Z","created":"2017-02-16T12:01:59.399Z","1.0.6":"2017-02-16T12:01:59.399Z"},"homepage":"http://aureooms.github.io/js-bit/","keywords":["binary","bit","bricks","hacks","javascript","js","twiddling"],"repository":{"type":"git","url":"git+https://github.com/aureooms/js-bit.git"},"author":{"name":"aureooms"},"bugs":{"url":"https://github.com/aureooms/js-bit/issues"},"license":"AGPL-3.0","readmeFilename":"README.md"}