copy-case
v1.0.4
Published
Copy the case form one string into another
Downloads
9
Readme
Copy Case
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.