linterhub / registry

Registry provides an interface for obtaining information about packages from various package managers
MIT License
1 stars 3 forks source link

Search the some package in npm #2

Closed romanrostislavovich closed 6 years ago

romanrostislavovich commented 6 years ago

Need to find meta-information about some package in npm and return it in JSON Object format.

Return object must be correspond to package.json schema

The implementation should take into account:

For input methods can get:

xferra commented 6 years ago

I will say you need a function:

search(name: string, version: string[] = null): [{package, deps}]

That will return an array of objects and each of them will contain package and dependency definitions for specific package version. If concrete version was not provided, then all versions should be returned. This function should be implemented for several package managers (TBD: npm, nuget, etc.)

xferra commented 6 years ago

Anyway I suggest to split this task, for example perform search request and mapping to schemas could be implemented in separate PRs.

romanrostislavovich commented 6 years ago

Schemas for outputs:

In feature we support following package managers:

e.t.c.

If have any idea about new methods, please describe it :)

xferra commented 6 years ago

@svoboda-rabstvo Please use a separate issue for proposals.

romanrostislavovich commented 6 years ago

@xferra I think we can close this issue?

xferra commented 6 years ago

As soon as issues for package managers listed above are created.

romanrostislavovich commented 6 years ago

@xferra Now we supported: gem, composer, pip and npm, and we have issue for chocolatey and nuget

xferra commented 6 years ago

Then just link corresponding issues to this one, please :)