strangecase

2.0.0 • Public • Published

sTraNGECaSe Build Status

Formats a given string's casing probabilistic by a given weight:

var sc = require('strangecase')
 
console.log(sc('strangecase')) //yields 'sTraNGECaSe'
console.log(sc('strangecase', 0.3)) //yields 'sTraNGECaSe'
console.log(sc('strangecase', 0.7)) //yields 'stranGeCase'

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.0.0
    7
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 2.0.0
    7
  • 1.0.5
    0
  • 1.0.4
    0
  • 1.0.3
    0

Package Sidebar

Install

npm i strangecase

Weekly Downloads

6

Version

2.0.0

License

MIT

Last publish

Collaborators

  • zaphod1984