@plexis/to-snake-case

0.0.22 • Public • Published

@plexis/toSnakeCase

Converts the input text to camelCase.

Installation npm i @plexis/to-snake-case

Usage

import toSnakeCase from '@plexis/to-snake-case';

toSnakeCase('Cool'); // => 'cool'
toSnakeCase('cool mate'); // => 'cool_mate'
toSnakeCase('Hey how are you today?'); // => 'hey_how_are_you_today'
toSnakeCase('PascalCase'); // => 'pascal_case'
toSnakeCase('kebab-case'); // => kebab_case

Aliases

import {toSnakeCase} from 'plexis';
import {snakeCase} from 'plexis';

Package Sidebar

Install

npm i @plexis/to-snake-case

Weekly Downloads

1

Version

0.0.22

License

MIT

Unpacked Size

4.92 kB

Total Files

6

Last publish

Collaborators

  • vorillaz