npm stats
  • Search
  • About
  • Repo
  • Sponsor
  • more
    • Search
    • About
    • Repo
    • Sponsor

Made by Antonio Ramirez

normalize-keywords

0.2.3

@jonschlinkert

npmHomeRepoSnykSocket
Downloads:52
$ npm install normalize-keywords
DailyWeeklyMonthlyYearly

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

  • github/jonschlinkert
  • twitter/jonschlinkert

License

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


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