nv-buf-eq
v1.0.8
Published
nv-buf-eq ======================= - compare IF buf VS buf OR buf VS str - this is suitable when buf size > 256; IF buf size <=256, just USE Buffer.toString("...") === str IS best/fast
Downloads
3
Readme
nv-buf-eq
- compare IF buf VS buf OR buf VS str
- you can delete ./TEST after install, that is big. the code self is only 4K.
install
- npm install nv-buf-eq
usage
const {
buf_eq_buf,
latin1_buf_eq_str,
utf16_buf_eq_str,
utf8_buf_eq_str,
} = require("nv-buf-eq");
example
0
0_0
0_1
1
1_0
1_1
METHODS
APIS
const buf_eq_buf = (buf0,buf1,is_buf_in_nodejs=!!1) => {
const latin1_buf_eq_str = (buf,s,is_buf_in_nodejs=!!1) => {
const utf16_buf_eq_str = (buf,s,is_buf_in_nodejs=!!1) => {
const utf8_buf_eq_str = (buf,s,is_buf_in_nodejs=!!1) => {
LICENSE
- ISC