0.1.2 • Published 7 years ago

strcaser v0.1.2

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

Build Status codecov

String Caser

"STRING CASER", It gives functionality to convert string into various cases.

Installation

Install module:

`npm install strcaser --save`

Usage

snake_case

import {snake_case} from "strcaser";

snake_case("I am a string"); // i_am_a_string
snake_case("IAmAString"); // i_am_a_string

or passing a diameter as second argument.

snake_case("i__am__a__string", "__") // i_am_a_string

studle_case

import {studle_case} from "strcaser";

studle_case("i_am_a_string"); // iAmAString
studle_case("IAmAString"); //  iAmAString

or passing a diameter as second argument.

studle_case("i.am.a.string"); // iAmAString

camel_case

import {camel_case} from "strcaser";

camel_case("i_am_a_string"); // IAmAString
camel_case("iAmAString"); //  IAmAString

title_case

import {title_case} from "strcaser";

title_case("i'm a string"); // I'm a string

lower_case

import {lower_case} from "strcaser";

lower_case("I'm a String"); // i'm a String

Test

Test module:

`npm test`

License

MIT

Copyright (c) 2016 Ravi Vaisayawan