npm/keyword-context

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

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

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
contexter = require('keyword-context');

ctx = contexter(readme, 'keyword');

ole.log(ctx); // a list of strings with the keyword in each
License

ISC


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.