Skip to content
This repository has been archived by the owner on Nov 16, 2019. It is now read-only.

npm/keyword-context

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Grab the context around keywords in a body of text

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published