New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

astrocite-eutils

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

astrocite-eutils

Converts PubMed EUtils ESummary API Responses to CSL JSON

  • 0.11.0
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

astrocite-eutils

A helper library for converting PubMed EUtils ESummary JSON to CSL JSON.

See astrocite for more details.

API

toCSL(apiResponse)

Returns: Array<CSL.Data | EUtilsError>

Where EUtilsError has the following interface

interface EUtilsError extends Error {
    /**
     * If the error occured on a single reference, then this is set with the identifier of that
     * reference
     */
    uid?: string;
    /**
     * True if the error is a global API-level error. Otherwise the Error occured on a single
     * reference (i.e, some of the request produced a valid result.)
     **/
    apiError: boolean;
}
apiResponse

Type: Object

The entire JSON response received from the PubMed EUtils ESummary API

Usage

import { toCSL } from 'astrocite-eutils';

// Assume apiResponse is the JSON received from the EUtils ESummary API
const cslJSON = toCSL(apiResponse);

FAQs

Package last updated on 14 Apr 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc