subsup

1.0.0 • Public • Published

subsup Build Status

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

Package Sidebar

Install

npm i subsup

Weekly Downloads

8

Version

1.0.0

License

MIT

Last publish

Collaborators

  • michal.jezierski