npm

Need private packages and team management tools?Check out npm Orgs. »

buffer-byte-frequency

1.0.1 • Public • Published

buffer-byte-frequency

Count the frequency of each byte in a buffer

Usage

'use strict'
 
var freq = require('buffer-byte-frequency')
 
freq(Buffer.from([0, 1, 2, 3])) // => [1, 1, 1, 1, 0, 0, 0, 0, 0, ...]
 

API

freq(buf)

Counts the frequency of each byte, returning a 256 element array with counts for each byte.

License

ISC

install

npm i buffer-byte-frequency

Downloadsweekly downloads

11

version

1.0.1

license

ISC

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
  • avatar
Report a vulnerability