0.1.0 • Published 6 years ago

s9a v0.1.0

Weekly downloads
3
License
CC0-1.0
Repository
github
Last release
6 years ago

s9a

Numeronymize synesthesia :hibiscus:

npm install s9a

s9a(text)

Replace matches within text with lowercase numeronym string "s9a"

// Matches several translations
s9a("synesthesia") // "s9a"
s9a("synaesthesia") // "s9a"
s9a("sinestesia") // "s9a"
s9a("synesthésie") // "s9a"
s9a("synesthésie") // "s9a"
// Case doesn't matter
s9a("SYNESTHESIA") // "s9a"
// Delimits via word boundary
s9a("notsynesthesia") // "notsynesthesia"
s9a("Synesthesia?") // "s9a?"
// Universally available
import s9a from "s9a" // ES6 loaders
const s9a = require("s9a") // CommonJS
const s9a = self.s9a // Elsewhere