package-searcher
v1.0.0
Published
get info from any package you like. npm or pip.
Maintainers
Readme
Package Searcher
get info about any package you like, eaither it's from npm or pip.
Installation
npm i tyizo-searchDeveloper 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;
}