LendAndRegret/node_modules/es-toolkit/dist/string/constantCase.js
2026-05-02 17:27:43 +08:00

13 lines
296 B
JavaScript

'use strict';
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
const words = require('./words.js');
function constantCase(str) {
const words$1 = words.words(str);
return words$1.map(word => word.toUpperCase()).join('_');
}
exports.constantCase = constantCase;