1.0.6 • Published 9 years ago

aureooms-js-bit v1.0.6

Weekly downloads
2
License
AGPL-3.0
Repository
github
Last release
9 years ago

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

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:

1.0.6

9 years ago

1.0.5

9 years ago

1.0.4

9 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago