How to use the @citation-js/core.plugins.config function in @citation-js/core

To help you get started, we’ve selected a few @citation-js/core examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github wikicite / wcite / lib / util / cite.js View on Github external
get: (ids, options = {}) => {
    require('@citation-js/plugin-wikidata')
    const languages = options.languages || []
    if (languages[0]) {
      plugins.config.get('@wikidata').langs = languages
    }
    return (Cite(ids) || { get: () => [] }).get().map(tidyCsl)
  },