0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2025-02-03 23:09:17 -05:00
verdaccio/packages/store
renovate[bot] b11cd7d11a
chore(deps): update all test dependencies (master) (major) (#5067)
* chore(deps): update all test dependencies

* fix tests and skip one

* restore nock

drops v18 and still being used

* Update pnpm-lock.yaml

* simplify nock deps

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Juan Picado <juanpicado19@gmail.com>
2025-01-26 22:44:12 +01:00
..
src chore: move tarball utils to core (#4972) 2024-12-20 14:21:09 +01:00
test chore(deps): update all test dependencies (master) (major) (#5067) 2025-01-26 22:44:12 +01:00
types
.babelrc
CHANGELOG.md chore: update versions (next-8) (#5012) 2024-12-20 19:02:00 +01:00
package.json chore(deps): update all test dependencies (master) (major) (#5067) 2025-01-26 22:44:12 +01:00
README.md refactor: search package (#4489) 2024-03-10 17:58:39 +01:00
tsconfig.build.json
tsconfig.json

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.