normalize-keywords

0.2.3 • Public • Published

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.

Package Sidebar

Install

npm i normalize-keywords

Weekly Downloads

48

Version

0.2.3

License

none

Last publish

Collaborators

  • jonschlinkert