Miss any of our Open RFC calls?Watch the recordings here! »

@aureooms/js-bit

1.0.6 • Public • Published

js-bit

Bit twiddling hacks code bricks for JavaScript.

NPM license NPM version Bower version Build Status Coverage Status Dependencies Status devDependencies Status Code Climate NPM downloads per month GitHub issues Inline docs

Can be managed through duo, component, bower, or npm.

let bit = require( "@aureooms/js-bit" ) ;

Example usage:

/* Compute the sign of an integer */
bit.sign(  0  ) ; // 0
bit.sign( -67 ) ; // -1
bit.sign( 432 ) ; // +1
 
/* Compute the lexicographically next bit permutation */
bit.next( 0b00101001 ) ; // 0b00101010

References:

Install

npm i @aureooms/js-bit

DownloadsWeekly Downloads

0

Version

1.0.6

License

AGPL-3.0

Last publish

Collaborators

  • avatar