This package has been deprecated

Author message:

Use `change-case`

snake-case
DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/snake-case package

4.0.0 • Public • Published

Snake Case

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

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i snake-case

    Weekly Downloads

    8,628,377

    Version

    4.0.0

    License

    MIT

    Unpacked Size

    2.57 kB

    Total Files

    5

    Last publish

    Collaborators

    • blakeembrey