Skip to content

Latest commit

 

History

History
55 lines (35 loc) · 1.62 KB

README.md

File metadata and controls

55 lines (35 loc) · 1.62 KB

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 :)