search-packages

Search packages on npm

Usage no npm install needed!

<script type="module">
  import searchPackages from 'https://cdn.skypack.dev/search-packages';
</script>

README

search-packages

NPM version NPM downloads

Github NodeJS Codecov Codacy Badge

Greenkeeper Semantic Release

Visual Studio Code Wallaby.js

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