Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function hex_block(start: number, end: number, buffer: Buffer) {
const n = end - start;
const strBuf = buffer_ellipsis(buffer);
return chalk.cyan("s:") + f(start, 4) + chalk.cyan(" e:") + f(end, 4) + chalk.cyan(" n:") + f(n, 4) + " " + chalk.yellow(strBuf);
}