0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2025-02-03 23:09:17 -05:00
verdaccio/packages/store
Marc Bernard 9041b0f9ad
chore: add info to log when audit, htpasswd, theme are used (#4956)
* chore: add info to log when audit, htpasswd, theme are used

* fix

* fix

* fix logger
2024-11-24 14:01:24 +01:00
..
src chore: add info to log when audit, htpasswd, theme are used (#4956) 2024-11-24 14:01:24 +01:00
test fix: unpublish a package on storage package (#4937) 2024-11-16 20:39:47 +01:00
types
.babelrc
CHANGELOG.md chore: update versions (next-8) (#4903) 2024-11-14 19:55:45 +01:00
package.json chore: update versions (next-8) (#4903) 2024-11-14 19:55:45 +01:00
README.md
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.