UNPKG

el-beeswarm

Version:

<div style="display: flex; padding: 1rem; flex-direction: column; align-items: center; justify-content: center; height: 100vh; text-align: center; display: flex;

20 lines (15 loc) 384 B
'use strict'; const formatters = require('../formatters'); /** * @param {{ useOr?: boolean }} [options={}] * @returns {string} */ module.exports = function getFormatterOptionsText(options = {}) { let output = Object.keys(formatters) .map((name) => `"${name}"`) .join(', '); if (options.useOr) { output = output.replace(/, ([a-z"]+)$/u, ' or $1'); } return output; };