# in-text-search

> Simple search function.

Latest version **0.1.0** (published 2016-07-12) · ISC license · 0 weekly downloads

## Install

```sh
npm install in-text-search
pnpm add in-text-search
yarn add in-text-search
bun add in-text-search
```

## 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.1.0 |
| Published | 2016-07-12 |
| First published | 2016-07-12 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Dumitru Cantea |
| Maintainers | mitica |
| Keywords | text, score, search |

## Links

- npm: https://www.npmjs.com/package/in-text-search
- Repository: https://github.com/Mitica/in-text-search-js
- Homepage: https://github.com/Mitica/in-text-search-js#readme
- Issues: https://github.com/Mitica/in-text-search-js/issues
- npm.io page: https://npm.io/package/in-text-search

## Dependencies (1)

- [stopwords-json](https://npm.io/package/stopwords-json.md) ^1.1.0

## Alternatives

- [lodash.assign](https://npm.io/package/lodash.assign.md) — 2.3M weekly downloads
- [lodash.chunk](https://npm.io/package/lodash.chunk.md) — 1.8M weekly downloads
- [react-native-ios-utilities](https://npm.io/package/react-native-ios-utilities.md) — 138.5K weekly downloads
- [@technically/lodash](https://npm.io/package/@technically/lodash.md) — 50.9K weekly downloads
- [@fluid-topics/ft-icon](https://npm.io/package/@fluid-topics/ft-icon.md) — 20.6K weekly downloads

## Recent versions

- 0.1.0 (latest) — 2016-07-12

## README

# in-text-search

Simple search function.

## Usage

```
var textSearch = require('in-text-search');

var text = 'Some big sample text';
var target = textSearch(text);
var score = target.search('sample');
// score === 1

score = target.search('small sample');
// score === 0.5

target = textSearch(text, {minTextLength: 3, lowercase: true, stopwords: ['small']});
score = target.search('small sample');
// score === 1
```

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