npms-client-service
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

npms-client-service

usage

const c = new Container();
c.bind(NpmsClientService).toSelf().inSingletonScope();
c.bind('fetch').toConstantValue(window.fetch);
c.get(NpmsClientService).search({q: "react", keywords: ["dom"], from: 0, size: 250})
.then(({total, results}) => {
});

implemented search, suggestion, info.

api endpoint: https://api.npms.io/v2

api docs: https://api-docs.npms.io/

Readme

Keywords

none

Package Sidebar

Install

npm i npms-client-service

Weekly Downloads

1

Version

0.0.2

License

MIT

Last publish

Collaborators

  • sliv