keyword-context
v1.0.0
Published
gives context around a given keyword in a larger bit of text
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
var contexter = require('keyword-context');
var ctx = contexter(readme, 'keyword');
console.log(ctx); // a list of strings with the keyword in eachLicense
ISC
