search-packages
v2.1.0
Published
Search packages on npm
Downloads
501
Readme
search-packages
Search packages on npm.
Usage
import { searchByKeywords } from 'search-packages'
(async () => {
const packages = await searchByKeywords(['some-keyword', 'more-keywords']) // ['pkg-a', 'pkg-b']
}())
// get additional fields
(async () => {
// [{ name: 'pkg-a', description: 'a' }, { name: 'pkg-b', description: 'b' }]
const packages = await searchByKeywords(['some-keyword', 'more-keywords'], ['description'])
}())
Contribute
# after fork and clone
npm install
# begin making changes
git checkout -b <branch>
npm run watch
# after making change(s)
git commit -m "<commit message>"
git push
# create PR