Nautical Poseidon Mythology
    Have ideas to improve npm?Join in the discussion! »

    randomcased
    TypeScript icon, indicating that this package has built-in type declarations

    1.0.0 • Public • Published

    Randomcased Travis CI Build Status

    Convert a string to use Randomcased.

    NPM Badge

    Install

    npm install randomcased

    Usage

    const randomCased = require("randomcased");
     
    randomCased("abcdefghijklmnopqrstuvwxyz");
    //=> 'AbCDeFghIjkLMnoPQrstuVwxyZ'
     
    randomCased("abcdefghijklmnopqrstuvwxyz");
    //=> 'ABcDEFGHijklmNOPQrstUvwXYz'
     
    // Seeding
    randomCased("abcdefghijklmnopqrstuvwxyz", 123456789);
    //=> 'abcDefgHIjkLmnOpqRsTuvwXyz'
     
    randomCased("abcdefghijklmnopqrstuvwxyz", 123456789);
    //=> 'abcDefgHIjkLmnOpqRsTuvwXyz'

    API

    randomCased(string, seed?)

    string

    Type: string

    The string to convert.

    seed

    Type: number

    The seed to use.

    Install

    npm i randomcased

    DownloadsWeekly Downloads

    2

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    4.03 kB

    Total Files

    6

    Last publish

    Collaborators

    • avatar