search-packages

Search packages on npm

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
search-packages
032.1.03 years ago4 years agoMinified + gzip package size for search-packages in KB

Readme

search-packages
!NPM versionnpm-imagenpm-url !NPM downloadsdownloads-imagedownloads-url
!Github NodeJSgithub-nodejsgithub-action-url !Codecovcodecov-imagecodecov-url !Codacy Badgecodacy-imagecodacy-url
!Greenkeepergreenkeeper-imagegreenkeeper-url !Semantic Releasesemantic-release-imagesemantic-release-url
!Visual Studio Codevscode-imagevscode-url !Wallaby.jswallaby-imagewallaby-url
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