JSPM

node-elsevier

0.3.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q29574F
  • License MIT

Wrapper around the Elsevier API.

Package Exports

  • node-elsevier

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (node-elsevier) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

node-elsevier

Return metadata from a Elsevier PII identifier

installation

npm install -g node-elsevier

Usage

Module usage

var metaELS = require('node-elsevier');
var options = {};

// request for one pii
metaELS.resolve("S1534580715000751", options, function (err, item) {
  if (err) { console.error(err); }
  console.log(item);
});

// request for an array of piis
metaELS.resolve(["S1534580715000751", "S0005273614000935"], options, function (err, list) {
  if (err) { console.error(err); }
  list.forEach(function (item) {
    console.log(item);
  });
});

Command line usage

Getting help

node-elsevier -h
Enrich a csv with meta information requested from a pii.
  Usage: bin/cmd.js [-es] [-f file_name | -k pii_key_name | --pii pii_string]

Options:
  --piikey, -k     the field name containing pii (default "pii").
  --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.
  --pii            A single pii to resolve.