UNPKG

text-snake-case

Version:

Convert into a lower case text with underscores between words

8 lines (7 loc) 172 B
import { dotCase } from "text-dot-case"; export function snakeCase(input, options = {}) { return dotCase(input, { delimiter: "_", ...options, }); }