meta-doi
Return crossref metadata from a DOI identifier.
The crossref api is used.
installation
npm install -g meta-doi
Usage
Module usage
var metadoi = require;var options = {}; // request
Command line usage
Getting help
meta-doi -hEnrich a csv with meta information requested from a doi. Usage: /home/ubuntu/ezpaarse/build/nvm/bin/latest/meta-doi [-es] [-f file_name | -k doi_key_name | --doi doi_string] Options: --doikey, -k the field name containing doi . --delimiter, -d delimiter of the csv file. Defaults to ";". --file, -f A csv file to parse. If absent, will read from standard input . --wait, -w minimum time to wait between queries, in milliseconds. Defaults to 200. --doi A single doi to resolve.
CSV file enrichment
meta-doi -f my_CSV_with_doi_field.csv > my_CSV_doi_enriched.csv
Request for a single DOI
meta-doi --doi "10.1134/S1607672911010121"
will return :
Documentation
Methods
resolve(doi||dois, options, callback)
Return doi metadata from dois with options.
The callback is called with a potential error and a result object (see example above).
doi could be a string (one doi) and result is an object
or
dois could be an array (many dois) and result is an array of objects.
You can use options { extended: true }
to obtain license informations about the doi object