Skip to content

alvarocastro/copy-case

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Copy Case

NPM Build status Maintainability status Coverage status Bundle size Code style: XO Release: Semantic

Copy the case from one string into another.

Install

npm install copy-case

Usage

const copyCase = require('copy-case');

copyCase('something', 'AnYThinG');
// => 'SoMEthiNg'

copyCase(target, source)

Returns target string copying source string case.

target

Type: String

String to change the case.

source

Type: String

String to copy the case form.

Contributing

Contributions are always welcome! Please run npm test beforehand to ensure everything is ok.

Support

If you use this package please consider starring it :)