Sunday, 28 May 2017

NPM Registry API - Scoped Packages

I am looking for scoped packages (you know, the "@scope/package-name" type of packages).

Is there a way in which I can list all scoped packages which exists under the main NPM registry (https://registry.npmjs.org)?

Good enough results will be fetching the latest scoped packages.
When I use https://registry.npmjs.org/-/all/static/month.json for fetching all of last month new packages - it does not include any scoped package. (I know that it will be deprecated on Sep 1th 2017).

If there is no such way, a sufficient solution will be to fetch all packages under a specific scope.
e.g - Getting all @angular packages (@angular/core, @angular/router, etc..).

Examples:

https://registry.npmjs.org/@angular%2Fcore
https://registry.npmjs.org/@asafsavich%2Fscope
https://registry.npmjs.org/@angular%2Fcommon

Thanks!



via AsafSavich

No comments:

Post a Comment