1.0.0 • Published 10 years ago
keyword-context v1.0.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
1.0.0
10 years ago