Noncommital Premarital Mischief

    pip-searcher

    1.0.2 • Public • Published

    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)

    Install

    npm i pip-searcher

    DownloadsWeekly Downloads

    5

    Version

    1.0.2

    License

    MIT

    Unpacked Size

    3.58 kB

    Total Files

    4

    Last publish

    Collaborators

    • abdooo9