source:
node_modules/es-toolkit/dist/string/snakeCase.mjs@
a762898
| Last change on this file since a762898 was a762898, checked in by , 5 months ago | |
|---|---|
|
|
| File size: 183 bytes | |
| Line | |
|---|---|
| 1 | import { words } from './words.mjs'; |
| 2 | |
| 3 | function snakeCase(str) { |
| 4 | const words$1 = words(str); |
| 5 | return words$1.map(word => word.toLowerCase()).join('_'); |
| 6 | } |
| 7 | |
| 8 | export { snakeCase }; |
Note:
See TracBrowser
for help on using the repository browser.
