|
2 anni fa | |
---|---|---|
.. | ||
dist | 2 anni fa | |
dist.es2015 | 2 anni fa | |
LICENSE | 2 anni fa | |
README.md | 2 anni fa | |
package.json | 2 anni fa |
Transform into a lower case string with underscores between words.
npm install snake-case --save
import { snakeCase } from "snake-case";
snakeCase("string"); //=> "string"
snakeCase("dot.case"); //=> "dot_case"
snakeCase("PascalCase"); //=> "pascal_case"
snakeCase("version 1.2.10"); //=> "version_1_2_10"
The function also accepts options
.
MIT