🚀 Socket Launch Week 🚀 Day 5: Introducing Socket Fix.Learn More
Socket
Sign inDemoInstall
Socket

es-simplify

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

es-simplify

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

1.0.6
latest
Source
npm
Version published
Weekly downloads
4
-63.64%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

elasticsearch

FAQs

Package last updated on 22 Dec 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts