package-searcher

1.0.0 • Public • Published

Package Searcher

get info about any package you like, eaither it's from npm or pip.

Installation

npm i tyizo-search

Developer Installation

  • Clone the repo git clone https://github.com/tyizo/package-searcher/
  • After that go to the dictionary where's the package located cd package-searcher
  • Install the dependencies using npm i
  • Compaile .ts files by tsc

Example usage

// require the package
const { Search } = require("tyizo-search");
// a new search client
const search = new Search();
// npm search
search.npm("nodemon").then((package) => console.log(package));
// pip search
search.pip("autopager").then((package) => console.log(package));

Response

For npm:

interface NpmInfo {
  name: string;
  description: string;
  author: string;
  authorGithub: URL;
  homepage: URL;
  keywords: string[];
}

For pip:

interface PipInfo {
  name: string;
  auhor: string;
  auhorEmail: string;
  description: string;
  homepage: URL;
  version: number & symbol;
  keywords: string[];
  authorGithub: URL;
  license: string;
}

Package Sidebar

Install

npm i package-searcher

Weekly Downloads

0

Version

1.0.0

License

ISC

Unpacked Size

5.2 kB

Total Files

7

Last publish

Collaborators

  • tyizo