0.0.1 • Published 3 years ago
has-strings v0.0.1
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
0.0.1
3 years ago