# keyword-context

> gives context around a given keyword in a larger bit of text

Latest version **1.0.0** (published 2015-06-01) · ISC license · 0 weekly downloads

## Install

```sh
npm install keyword-context
pnpm add keyword-context
yarn add keyword-context
bun add keyword-context
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2015-06-01 |
| First published | 2015-06-01 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 (+6 in 1 direct dependencies) |
| Install scripts | no |
| Author | Raquel Vélez |
| Maintainers | rockbot |
| Keywords | keyword, context, highlight |

## Links

- npm: https://www.npmjs.com/package/keyword-context
- npm.io page: https://npm.io/package/keyword-context

## Dependencies (1)

- [lodash](https://npm.io/package/lodash.md) ^3.9.3

## Alternatives

- [@oh-my-pi/pi-natives](https://npm.io/package/@oh-my-pi/pi-natives.md) — 51.8K weekly downloads
- [@capgo/capacitor-light-sensor](https://npm.io/package/@capgo/capacitor-light-sensor.md) — 3.0K weekly downloads
- [@heyhuynhgiabuu/pi-diff](https://npm.io/package/@heyhuynhgiabuu/pi-diff.md) — 492 weekly downloads
- [@lotsa/verdant-lang-asm](https://npm.io/package/@lotsa/verdant-lang-asm.md) — 38 weekly downloads
- [new-era-syntax](https://npm.io/package/new-era-syntax.md) — 20 weekly downloads

## Recent versions

- 1.0.0 (latest) — 2015-06-01

## README

# keyword-context

Takes a body of text (like a readme) and a keyword, and returns sections of the document that include the keyword and contextual words around it.

## Usage

```js
var contexter = require('keyword-context');

var ctx = contexter(readme, 'keyword');

console.log(ctx); // a list of strings with the keyword in each
```

## License

ISC

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