UNPKG

es-toolkit

Version:

A state-of-the-art, high-performance JavaScript utility library with a small bundle size and strong type annotations.

9 lines (6 loc) 189 B
import { words } from './words.mjs'; function constantCase(str) { const words$1 = words(str); return words$1.map(word => word.toUpperCase()).join('_'); } export { constantCase };