Skip to content

Converts all numbers in text to superscript unicode characters

License

Notifications You must be signed in to change notification settings

a1ip/numbers-to-superscript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

numbers-to-superscript

Converts all numbers in text to superscript unicode characters

Example

import {superscript} from "numbers-to-superscript"

console.log(superscript('21 Prove all things; hold fast that which is good.'))

Output:

²¹ Prove all things; hold fast that which is good.

Install

npm i numbers-to-superscript

License

(c) 2023 Philippe Rigovanov. MIT License

About

Converts all numbers in text to superscript unicode characters

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published