npm.io
1.0.0 • Published 11 years ago

keyword-context

Licence
ISC
Version
1.0.0
Deps
1
Vulns
6
Weekly
0

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

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

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

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

License

ISC

Keywords