1.0.1 β’ Published 2 years ago
unfonts v1.0.1
Unfonts
Installation
npm i unfonts
Usage
const unfonts = require("unfonts")
let input = "π
¦β³β¦γ ο½²β’ π
β± δΉεΰ½ fonts ?π€"
console.log(unfonts.clean(input)) // Output: want tO clear fonts
// The ? and π€ got removed because it is not in the alphabet.
// If the want the non-alphabet strings to not get removed use {nonAlphabet:true}
// Example:
console.log(unfonts.clean(input, {nonAlphabet:true})) // Output: want tO clear fonts ?π€