How to use the citeproc.PROCESSOR_VERSION function in citeproc

To help you get started, we’ve selected a few citeproc 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 larsgw / citation.js / index.js View on Github external
this.data = self.data
}

Cite.prototype = Object.create(core.Cite.prototype)

Cite.async = core.Cite.async
Cite.validateOptions = core.Cite.validateOptions
Cite.validateOutputOptions = core.Cite.validateOutputOptions

Cite.input = core.plugins.input.chain
Cite.inputAsync = core.plugins.input.chainAsync

Cite.util = Object.assign({ attr }, core.util)
Cite.version = {
  cite: core.version,
  citeproc: citeproc.PROCESSOR_VERSION
}

const CSL = core.plugins.config.get('@csl')

Cite.CSL = {
  engine: require('@citation-js/plugin-csl/lib/engines').fetchEngine,
  item (data) {
    return id => data.find(entry => entry.id === id)
  },
  locale (lang) {
    return CSL.styles.get(CSL.styles.has(lang) ? lang : 'en-US')
  },
  style (style) {
    return CSL.templates.get(CSL.templates.has(style) ? style : 'apa')
  },
  register: {
github larsgw / citation.js / lib / version.js View on Github external
get: function get() {
    return _citeproc.PROCESSOR_VERSION;
  }
});

citeproc

The citeproc-js citation formatting module, in CommonJS format. This version is based on citeproc-js 1.4.63

CPAL-1.0 OR AGPL-1.0
Latest version published 1 year ago

Package Health Score

68 / 100
Full package analysis

Similar packages