to-bat-case

v1.1.0
Convert a string to bat case.
bat-case bat case string str text convert

to-bat-case Build Status

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.

npm i to-bat-case

Metadata

  • MIT
  • >=4
  • Luca Lischetti
  • released 9/27/2017

Downloads

Maintainers