NPM Registry
MergeStat Lite can also query the NPM registry API.
npm_get_package
Scalar function that queries https://registry.npmjs.org/<<packageName>>
or https://registry.npmjs.org/<<packageName>>/<<version>>
(depending on number of params)
and returns the JSON response.
Params:
package
- name of the NPM packageversion
- (optional) package version
SELECT npm_get_package('jquery')
SELECT npm_get_package('jquery', 'latest')