clojars-client

0.4.0 • Public • Published

clojars-client

Build Status dependencies Status

NPM

A simple client for the clojars REST API.

Project Info
License: MIT
Build: npm
Engines: Node.js 4.x, 6.x, 7.x

Installation

npm install clojars-client -S

Usage

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);

You can use to

  • Get informations about a user.
  • Get informations about a group.
  • Get informations about a artifact.
  • Search by group and artifact.
  • Artifact search by name.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.4.0
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.4.0
    1
  • 0.3.0
    1
  • 0.2.0
    1
  • 0.1.0
    1

Package Sidebar

Install

npm i clojars-client

Weekly Downloads

4

Version

0.4.0

License

MIT

Last publish

Collaborators

  • helio-frota