subsup
v1.0.0
Published
Unicode subscripts and superscripts mapper
Downloads
7
Maintainers
Readme
subsup
Unicode subscripts and superscripts mapper
Installation
$ npm i subsup
Examples
'a' + sup(2) + ' + b' + sup(2) + ' = c' + sup(2);
// a² + b² = c²
`W(x, y) = -3x${sup('2')} + 2xy${sup(2)} + y${sub(0)}`
// W(x, y) = -3x² + 2xy² + y₀
`W(x) = -3x${sup(3)} - x${sup(2)} + 2x-7`
// W(x) = -3x³ - x² + 2x - 7
License
MIT