has-strings

0.0.1 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i has-strings

Weekly Downloads

3

Version

0.0.1

License

CC0-1.0

Unpacked Size

8.97 kB

Total Files

4

Last publish

Collaborators

  • danieljdufour