find-similar-packages

1.0.1 • Public • Published

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);
});

Readme

Keywords

Package Sidebar

Install

npm i find-similar-packages

Weekly Downloads

0

Version

1.0.1

License

ISC

Unpacked Size

14.8 kB

Total Files

5

Last publish

Collaborators

  • ksingh8081