Copy the case from one string into another.
npm install copy-case
const copyCase = require('copy-case');
copyCase('something', 'AnYThinG');
// => 'SoMEthiNg'
Returns target
string copying source
string case.
Type: String
String to change the case.
Type: String
String to copy the case form.
Contributions are always welcome! Please run npm test
beforehand to ensure everything is ok.
If you use this package please consider starring it :)