1.0.6 • Published 7 years ago

es-simplify v1.0.6

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

es-simplify

Simplifies an english search term to use it with an Elasticsearch completion index.

npm version Codeship Status for stevejay/es-simplify Coverage Status bitHound Overall Score bitHound Dependencies bitHound Dev Dependencies license

NPM

Install

$ npm install --save es-simplify

Usage

const simplify = require('es-simplify');

// simplify a term

const result = simplify(' Hi    Yóu   ');

// result is 'hi you'

See the unit tests for further examples.

API

simplify(term)

Returns a simplied version of the supplied string.

input

Type: string

The term you want to simplify.

License

MIT

1.0.6

7 years ago

1.0.5

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago