numbers-to-superscript

1.0.5 • Public • Published

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

/numbers-to-superscript/

    Package Sidebar

    Install

    npm i numbers-to-superscript

    Weekly Downloads

    25

    Version

    1.0.5

    License

    MIT

    Unpacked Size

    2.62 kB

    Total Files

    5

    Last publish

    Collaborators

    • a1ip