UNPKG

@citation-js/plugin-wikidata

Version:

Plugin for Wikidata for Citation.js

18 lines (17 loc) 386 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.parse = parse; exports.parseAsync = parseAsync; var _core = require("@citation-js/core"); const { fetchFile, fetchFileAsync } = _core.util; function parse(urls) { return [].concat(urls).map(fetchFile); } function parseAsync(urls) { return Promise.all([].concat(urls).map(fetchFileAsync)); }