1.0.1 • Published 7 years ago

find-similar-packages v1.0.1

Weekly downloads
2
License
ISC
Repository
github
Last release
7 years ago

find-similar-packages

find packages similar to given one. Similarity is decided based on keyword matching.

  • returns a promise
  • default result size is 10

Examples

find 10 packages similar to 'express'

var findSimilar = require('find-similar-packages');
findSimilar('express').then(function (packages) {
    console.log(packages); //[ 'loopback', 'express-generator', 'koa', ...]
}).catch(function (error) {
    console.log(error);
});

find 5 packages similar to 'mongoose'

var findSimilar = require('find-similar-packages');
findSimilar('mongoose', 5).then(function (packages) {
    console.log(packages); //[ 'js-data', 'mongolass', 'mongoskin', ...]
}).catch(function (error) {
    console.log(error);
});