mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-12-16 21:56:25 -05:00
6e764e3c49
* feat: add support for npm owner * Revert debug msg * Finish feature and add test cases * Fix remote user name and more tests * Simplify passing remote user * Update version metadata with owners * Add test for validateUserName * Add comment for "change owner" * add config option * add check to removePackage, removeTarball * typo * check access when write=true * Add to config, fix undefined user * Update docs * Update docs * Update readme |
||
---|---|---|
.. | ||
src | ||
test | ||
types | ||
.babelrc | ||
CHANGELOG.md | ||
jest.config.js | ||
package.json | ||
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.