to-bat-case
v1.1.0
Published
Convert a string to bat case.
Downloads
6
Maintainers
Readme
to-bat-case
Convert a string to ǝsɐƆ ʇɐ𐐒. 🦇
Example: Bat_Case!
→ ¡ǝsɐƆ‾ʇɐ𐐒
Installation
$ npm install to-bat-case
Example
const toBatCase = require('to-bat-case')
toBatCase('NA NA NA NA NA NA NA NA NA NA NA NA NA NA')
//=> '∀N ∀N ∀N ∀N ∀N ∀N ∀N ∀N ∀N ∀N ∀N ∀N ∀N ∀N'
toBatCase('Bat_Case!')
//=> '¡ǝsɐƆ‾ʇɐ𐐒'
toBatCase('NA NA NA NA NA NA NA NA NA NA NA NA NA NA', false)
//=> 'N∀ N∀ N∀ N∀ N∀ N∀ N∀ N∀ N∀ N∀ N∀ N∀ N∀ N∀'
toBatCase('Bat_Case!', false)
//=> '𐐒ɐʇ‾Ɔɐsǝ¡'
API
toBatCase(input, [noRevert])
Returns the input
converted to bat case.
input
Type: string
noRevert
Type: bool
Default: false
Inspired by
The series of case helpers and this tweet.