🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

@hookun/bitbybit

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hookun/bitbybit - npm Package Compare versions

Comparing version

to
0.0.8

2

lib/toString.d.ts

@@ -1,1 +0,1 @@

export declare const toString: (buffer: ArrayBuffer, bitsPerLine?: number, delimiter?: string) => string;
export declare const toString: (buffer: ArrayBuffer, bitsPerLine?: number, maxLineCount?: number, delimiter?: string) => string;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.toString = (buffer, bitsPerLine = 32, delimiter = '') => {
exports.toString = (buffer, bitsPerLine = 32, maxLineCount = Infinity, delimiter = '') => {
const lines = [];

@@ -12,3 +12,6 @@ let line = [];

if (length === bitsPerLine) {
lines.push(line.join(delimiter));
const lineCount = lines.push(line.join(delimiter));
if (maxLineCount <= lineCount) {
return lines.join('\n');
}
line = [];

@@ -15,0 +18,0 @@ }

@@ -11,3 +11,3 @@ {

},
"version": "0.0.6",
"version": "0.0.8",
"license": "Apache-2.0",

@@ -14,0 +14,0 @@ "author": {