0.2.3 • Published 10 years ago

normalize-keywords v0.2.3

Weekly downloads
16
License
-
Repository
github
Last release
10 years ago

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.