0.0.1 • Published 3 years ago

has-strings v0.0.1

Weekly downloads
3
License
CC0-1.0
Repository
github
Last release
3 years ago

has-strings

Fast Way to Check if a File Contains Text Strings

install

npm install has-strings

usage

const hasStrings = require("has-strings");

const { result } = hasStrings({
  data: buffer, // data can be ArrayBuffer, Buffer, DataView, String, or Uint8Array
  debug: true, // set debug to true for increased logging
  strings: ["[", "]", "DATUM"]
});
// result is true