1
0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-11-13 03:35:52 +01:00
verdaccio/packages/store
Juan Picado 56713db9a3
chore: update versions (next-7) (#4536)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-03-10 18:50:50 +01:00
..
src refactor: search package (#4489) 2024-03-10 17:58:39 +01:00
test refactor: search package (#4489) 2024-03-10 17:58:39 +01:00
types chore(website): add api section (#3424) 2022-10-10 08:00:09 +02:00
.babelrc refactor: devDependencies strictly defined in each package (#1884) 2021-04-09 17:54:11 +02:00
CHANGELOG.md chore: update versions (next-7) (#4536) 2024-03-10 18:50:50 +01:00
jest.config.js refactor: search package (#4489) 2024-03-10 17:58:39 +01:00
package.json chore: update versions (next-7) (#4536) 2024-03-10 18:50:50 +01:00
README.md refactor: search package (#4489) 2024-03-10 17:58:39 +01:00
tsconfig.build.json feat: add typescript project references settings (#1933) 2021-04-09 17:54:19 +02:00
tsconfig.json refactor logger module (#3592) 2023-02-05 21:00:32 +01:00

Verdaccio Search API

The Search class in Verdaccio provides a convenient API for searching packages across both configured proxies and local storage. It enables efficient package discovery and retrieval by aggregating search results from multiple upstream sources.

Installation

npm install @verdaccio/search

Usage

import { Config } from '@verdaccio/config';
import { logger } from '@verdaccio/logger';
import { Search } from '@verdaccio/search';

const config = new Config(configYaml);
// Instantiate Search class
const search = new Search(config, logger);

// Define search parameters
const searchParams = {
  // specify search parameters as needed
};

// Perform a search and retrieve the results
const searchResults = await search.search(searchParams);

Donations

Verdaccio is run by volunteers; nobody is working full-time on it. If you find this project to be useful and would like to support its development, consider making a donation - your logo might end up in this readme. 😉

Donate 💵👍🏻 starting from $1/month or just one single contribution.

License

Verdaccio is MIT licensed

The Verdaccio documentation and logos (excluding /thanks, e.g., .md, .png, .sketch) files within the /assets folder) is Creative Commons licensed.