https://github.com/msn0/subsup
Unicode subscripts and superscripts mapper
https://github.com/msn0/subsup
subscript superscript unicode
Last synced: 4 months ago
JSON representation
Unicode subscripts and superscripts mapper
- Host: GitHub
- URL: https://github.com/msn0/subsup
- Owner: msn0
- Created: 2017-11-15T08:31:46.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2022-04-09T21:29:27.000Z (almost 4 years ago)
- Last Synced: 2025-08-25T21:26:25.775Z (5 months ago)
- Topics: subscript, superscript, unicode
- Language: JavaScript
- Size: 40 KB
- Stars: 4
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# subsup [](http://travis-ci.org/msn0/subsup)
Unicode subscripts and superscripts mapper
## Installation
```sh
$ npm i subsup
```
## Examples
```js
'a' + sup(2) + ' + b' + sup(2) + ' = c' + sup(2);
// a² + b² = c²
```
```js
`W(x, y) = -3x${sup('2')} + 2xy${sup(2)} + y${sub(0)}`
// W(x, y) = -3x² + 2xy² + y₀
```
```js
`W(x) = -3x${sup(3)} - x${sup(2)} + 2x-7`
// W(x) = -3x³ - x² + 2x - 7
```
## License
MIT