JSPM

@lavadrop/snake-case

0.4.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 7
  • Score
    100M100P100Q43921F
  • License MIT

Converts a string value into snake case.

Package Exports

  • @lavadrop/snake-case

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@lavadrop/snake-case) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@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