Name: keyword-context
Owner: npm
Description: Grab the context around keywords in a body of text
Created: 2015-06-01 20:44:21.0
Updated: 2018-01-22 18:46:03.0
Pushed: 2015-06-01 20:49:57.0
Homepage: null
Size: 2376
Language: JavaScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
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.
contexter = require('keyword-context');
ctx = contexter(readme, 'keyword');
ole.log(ctx); // a list of strings with the keyword in each
ISC