keyword-context

1.0.0 • Public • Published

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

Package Sidebar

Install

npm i keyword-context

Weekly Downloads

0

Version

1.0.0

License

ISC

Last publish

Collaborators

  • rockbot