# has-strings

> Fast Way to Check if a File Contains Text Strings

Latest version **0.0.1** (published 2020-12-26) · CC0-1.0 license · 0 weekly downloads

## Install

```sh
npm install has-strings
pnpm add has-strings
yarn add has-strings
bun add has-strings
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2020-12-26 |
| First published | 2020-12-26 |
| Weekly downloads | 0 |
| License | CC0-1.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 8.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Daniel J. Dufour |
| Maintainers | danieljdufour |
| Keywords | string, substring, test |

## Links

- npm: https://www.npmjs.com/package/has-strings
- Repository: https://github.com/DanielJDufour/has-strings
- Homepage: https://github.com/DanielJDufour/has-strings#readme
- Issues: https://github.com/DanielJDufour/has-strings/issues
- npm.io page: https://npm.io/package/has-strings

## Dependencies (1)

- [has-bytes](https://npm.io/package/has-bytes.md) 0.0.2

## Alternatives

- [duck](https://npm.io/package/duck.md) — 4.2M weekly downloads
- [ava](https://npm.io/package/ava.md) — 560.2K weekly downloads
- [storybook-addon-module-mock](https://npm.io/package/storybook-addon-module-mock.md) — 71.7K weekly downloads
- [@ethereum-waffle/mock-contract](https://npm.io/package/@ethereum-waffle/mock-contract.md) — 40.0K weekly downloads
- [aws-elasticsearch-connector](https://npm.io/package/aws-elasticsearch-connector.md) — 37.4K weekly downloads

## Recent versions

- 0.0.1 (latest) — 2020-12-26

## README

# has-strings
Fast Way to Check if a File Contains Text Strings

# install
```bash
npm install has-strings
```

# usage
```js
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
```

---
_Source: https://npm.io/package/has-strings · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
