0.0.2 • Published 8 years ago

npms-client-service v0.0.2

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

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/