Socket
Socket
Sign inDemoInstall

es-simplify

Package Overview
Dependencies
1
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

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


Version published
Weekly downloads
6
increased by500%
Maintainers
1
Install size
22.9 kB
Created
Weekly downloads
 

Readme

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

FAQs

Last updated on 22 Dec 2016

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc