Appearance
toSnakeCase is a function convert a string to snake case.
toSnakeCase
This function will convert any string into snake case:
import { toSnakeCase } from "@titocandradev/neatcore"; const result = toSnakeCase("hello world"); // hello_world