Socket
Book a DemoInstallSign in
Socket

normalize-keywords

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

normalize-keywords

Normalize an array of keywords. Sorts and removes duplicates and common words (uses the 100 most common english words).

latest
Source
npmnpm
Version
0.2.3
Version published
Maintainers
1
Created
Source

normalize-keywords NPM version

Normalize an array of keywords. Sorts and removes duplicates and common words (uses the 100 most common english words).

Install

Install with npm:

npm i normalize-keywords --save-dev

Run tests

npm test

Usage

var normalize = require('normalize-keywords');
var keywords = ['javascript', 'objects', 'object-hash'];

normalize(keywords);
//=> [ 'hash', 'javascript', 'object', 'object-hash' ]

normalize(keywords, {omit: ['object']});
//=> [ 'hash', 'javascript', 'object-hash' ]

Author

Jon Schlinkert

License

Copyright (c) 2014 Jon Schlinkert, contributors.
Released under the MIT license

This file was generated by verb-cli on October 09, 2014.

Keywords

array

FAQs

Package last updated on 10 Oct 2014

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