getFormatterOptionsText.cjs 488 B

123456789101112131415161718
  1. // NOTICE: This file is generated by Rollup. To modify it,
  2. // please instead edit the ESM counterpart and rebuild with Rollup (npm run build).
  3. 'use strict';
  4. const index = require('../formatters/index.cjs');
  5. /**
  6. * @param {string} separator
  7. * @param {string} [quote]
  8. * @returns {string}
  9. */
  10. function getFormatterOptionsText(separator, quote = '') {
  11. return Object.keys(index)
  12. .map((name) => `${quote}${name}${quote}`)
  13. .join(separator);
  14. }
  15. module.exports = getFormatterOptionsText;