Miss any of our Open RFC calls?Watch the recordings here! »

snake-case

3.0.3 • Public • Published

Snake Case

NPM version NPM downloads Bundle size

Transform into a lower case string with underscores between words.

Installation

npm install snake-case --save

Usage

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.

License

MIT

Install

npm i snake-case

DownloadsWeekly Downloads

1,973,485

Version

3.0.3

License

MIT

Unpacked Size

10.2 kB

Total Files

15

Last publish

Collaborators

  • avatar