JSPM

pip-searcher

1.0.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q9810F
  • License MIT

pip packages searcher

Package Exports

  • pip-searcher

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (pip-searcher) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

pip-searcher

pip-searcher package
  • pip package that gets information about pip packages and other info from the pip API

Installation from NPM

npm i pip-searcher
  • search(package_name) - Get a pip package
    • package_name: (REQUIRED) pip package name

Examples

(Using await)

const pip = require('pip-searcher')

async function getPip() {
    const res = await pip.search('NumPy')
    console.log(res) // All information related to the express package
}
getPip()

(Using .then function)

const pip = require('pip-searcher')

pip.search('NumPy').then(res => {
    console.log(res) // All information related to the express package
})

(Validation)

const pip = require('pip-searcher')

pip.search('NumPy').then(res => {
    if (res) {
        console.log(res) // All information related to the express package
    } else {
        console.log("package not found");
    }
})

Contributing

© pip-searcher, 2021 | abdooo9 (abdooo9.dev@gmail.com)