A simple client for the clojars REST API.
Project Info | |
---|---|
License: | MIT |
Build: | npm |
Engines: | Node.js 4.x, 6.x, 7.x |
npm install clojars-client -S
const client = require('clojars-client');
client.user('toby')
.then(response => {
console.log(response.body);
})
.catch(console.log);
client.group('org.clojars')
.then(response => {
console.log(response.body);
})
.catch(console.log);
client.artifact('leiningen')
.then(response => {
console.log(response.body);
})
.catch(console.log);
client.groupArtifact('org.clojars', 'xeqi')
.then(response => {
console.log(response.body);
})
.catch(console.log);
client.search('lein')
.then(response => {
console.log(response.body);
})
.catch(console.log);
- Get informations about a user.
- Get informations about a group.
- Get informations about a artifact.
- Search by group and artifact.
- Artifact search by name.