@lavadrop/snake-case
TypeScript icon, indicating that this package has built-in type declarations

0.4.0 • Public • Published

@lavadrop/snake-case

npm license Travis Build Status codecov Try @lavadrop/snake-case on RunKit

Part of a library of zero-dependency npm modules that do just one thing.

npm

min + gzip | 202 bytes

source

Converts a string value into snake case.

Usage

import snakeCase from '@lavadrop/snake-case'

snakeCase('fooBARBaz')
// => 'foo_bar_baz'

Parameters

Name Type Description
value string The string to convert.

Returns

The snake-cased string.

Return type

string

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i @lavadrop/snake-case

      Weekly Downloads

      2

      Version

      0.4.0

      License

      MIT

      Unpacked Size

      9.94 kB

      Total Files

      8

      Last publish

      Collaborators

      • jedmao