Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

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'

install

npm i strangecase

Downloadsweekly downloads

4

version

2.0.0

license

MIT

repository

githubgithub

last publish

collaborators

  • avatar