s9a
v0.1.0
Published
Numeronymize synesthesia
Downloads
12
Maintainers
Readme
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