Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bitmagic

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bitmagic - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

22

bitmagic.js
/*
bitmagic - this module is used handled bits
*
* @author Alex Ayala<ing.jaab@ugmail.com>
//
*/
//
*/
exports.intToHexBuffer = function(int, length){

@@ -42,7 +42,7 @@

for (var i = 7; i >= 0; i--) {
var bit = data[j] & (1 << i) ? 1 : 0;
var bit = data[j] & (1 << i) ? 1 : 0;
if (counter === n && m === undefined){
result.string = bit.toString();
result.value = parseInt(result.string, 2);
result.value = parseInt(result.string, 2);
return result;

@@ -57,4 +57,4 @@ }

result.string = bits;
result.value = parseInt(result.string, 2);
result.bitmap = bits;
result.value = parseInt(result.bitmap, 2);
return result;

@@ -68,3 +68,3 @@ };

var value = exports.extractBitsFromByte(buf, 3);
console.log(value.string);
console.log(value.bitmap);
console.log(value.value);

@@ -80,2 +80,2 @@

*/
*/
{
"name": "bitmagic",
"version": "0.0.1",
"version": "0.0.2",
"description": "An clean and easy node module to handle bits.",

@@ -5,0 +5,0 @@ "main": "bitmagic.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc