site/node_modules/@citation-js/plugin-csl/lib/styles.js

18 lines
596 B
JavaScript
Raw Permalink Normal View History

2024-10-14 06:09:33 +00:00
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.templates = exports.default = void 0;
var _core = require("@citation-js/core");
var _styles = _interopRequireDefault(require("./styles.json"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
const templates = exports.templates = new _core.util.Register(_styles.default);
const fetchStyle = style => {
if (templates.has(style)) {
return templates.get(style);
} else {
return templates.get('apa');
}
};
var _default = exports.default = fetchStyle;