UNPKG

compromise

Version:

modest natural language processing

19 lines (15 loc) • 480 B
import match from './match.js' import lookaround from './lookaround.js' import split from './split.js' import join from './join.js' const methods = { ...match, ...lookaround, ...split, ...join } // aliases methods.lookBehind = methods.before methods.lookBefore = methods.before methods.lookAhead = methods.after methods.lookAfter = methods.after methods.notIf = methods.ifNo const matchAPI = function (View) { Object.assign(View.prototype, methods) } export default matchAPI