copy-case

    1.0.4 • Public • Published

    Copy Case

    NPM Build Status codebeat badge Coverage Status XO code style

    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.

    Install

    npm i copy-case

    DownloadsWeekly Downloads

    12

    Version

    1.0.4

    License

    MIT

    Unpacked Size

    4.55 kB

    Total Files

    7

    Last publish

    Collaborators

    • avatar