Skip to content

BeagleLab/beagle-altmetrics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

beagle-altmetrics

Usage

Callbacks:

var beagleAltmetrics = require("beagle-altmetrics")
var doi = "10.1371/journal.pone.0077056"

beagleAltmetrics.getDataFromDoi(doi, function(err, data) {
  if (err != null) {
    console.error(err)
    process.exit(-1)
  }

  // data is json
  console.log(data)
})

Streams:

var beagleAltmetrics = require("beagle-altmetrics")
var doi = "10.1371/journal.pone.0077056"

var stream = beagleAltmetrics.getDataFromDoiStream(doi)
// stream.pipe() into whatever
})

CLI

Examples of how to use the interface of this module:

Run them like:

./cli-stream.js "10.1371/journal.pone.0077056"
./cli-callback.js "10.1371/journal.pone.0077056"

About

Display altmetrics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published