compromise
Version:
modest natural language processing
16 lines (13 loc) • 480 B
JavaScript
import caseFns from './case.js'
import insert from './insert.js'
import replace from './replace.js'
import remove from './remove.js'
import whitespace from './whitespace.js'
import sort from './sort.js'
import concat from './concat.js'
import harden from './harden.js'
const methods = { ...caseFns, ...insert, ...replace, ...remove, ...whitespace, ...sort, ...concat, ...harden }
const addAPI = function (View) {
Object.assign(View.prototype, methods)
}
export default addAPI