mirror of
https://gitea.com/gitea/docs.git
synced 2026-07-22 02:37:42 +00:00
NPM Package Registry search API endpoint (#20280)
Close #20098, in the NPM registry API, implemented to match what's described by https://github.com/npm/registry/blob/master/docs/REGISTRY-API.md#get-v1search Currently have only implemented the bare minimum to work with the [Unity Package Manager](https://docs.unity3d.com/Manual/upm-ui.html). Co-authored-by: Jack Vine <jackv@jack-lemur-suse.cat-prometheus.ts.net> Co-authored-by: KN4CK3R <admin@oldschoolhack.me> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
This commit is contained in:
@@ -127,6 +127,10 @@ npm dist-tag add test_package@1.0.2 release
|
|||||||
|
|
||||||
The tag name must not be a valid version. All tag names which are parsable as a version are rejected.
|
The tag name must not be a valid version. All tag names which are parsable as a version are rejected.
|
||||||
|
|
||||||
|
## Search packages
|
||||||
|
|
||||||
|
The registry supports [searching](https://docs.npmjs.com/cli/v7/commands/npm-search/) but does not support special search qualifiers like `author:gitea`.
|
||||||
|
|
||||||
## Supported commands
|
## Supported commands
|
||||||
|
|
||||||
```
|
```
|
||||||
@@ -136,4 +140,5 @@ npm publish
|
|||||||
npm unpublish
|
npm unpublish
|
||||||
npm dist-tag
|
npm dist-tag
|
||||||
npm view
|
npm view
|
||||||
|
npm search
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user