normalize-keywords
v0.2.3
Published
Normalize an array of keywords. Sorts and removes duplicates and common words (uses the 100 most common english words).
Downloads
783
Maintainers
Readme
normalize-keywords
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.