sindresorhus / npm-keyword

Get a list of npm packages with keywords
MIT License
52 stars 8 forks source link

Is it possible to specify a max number of returned libs #8

Closed pketh closed 8 years ago

pketh commented 8 years ago

Maybe an optional count to return param, something like?

npmKeyword('gulpplugin', 5).then(packages => {
    console.log(packages);
    //=> array of length 5 [{name: 'gulp-autoprefixer', description: '...'}, ...]
});
sindresorhus commented 8 years ago

I don't think it's possible to specify that in the server request, but I would be open to a pull request that adds a streaming API.