# @extra-string/to-baseline

> Convert string to baseline characters, limited support.

Latest version **1.1.3** (published 2018-12-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install @extra-string/to-baseline
pnpm add @extra-string/to-baseline
yarn add @extra-string/to-baseline
bun add @extra-string/to-baseline
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: no vulnerabilities; high maintenance score.

Warnings: low downloads; no types; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.1.3 |
| Published | 2018-12-24 |
| First published | 2018-09-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 7 |
| Author | wolfram77@gmail.com |
| Maintainers | wolfram77 |
| Keywords | extra, string, standard, utility, method, text, manipulation, function, merferry, to, baseline |

## Links

- npm: https://www.npmjs.com/package/@extra-string/to-baseline
- Repository: https://github.com/nodef/extra-string
- Homepage: https://github.com/nodef/extra-string#readme
- Issues: https://github.com/nodef/extra-string/issues
- npm.io page: https://npm.io/package/@extra-string/to-baseline

## Alternatives

- [update-check](https://npm.io/package/update-check.md) — 4.0M weekly downloads
- [react-native-onesignal](https://npm.io/package/react-native-onesignal.md) — 134.5K weekly downloads
- [react-redux-toastr](https://npm.io/package/react-redux-toastr.md) — 33.7K weekly downloads
- [@nocobase/plugin-notification-manager](https://npm.io/package/@nocobase/plugin-notification-manager.md) — 2.0K weekly downloads
- [react-simple-toasts](https://npm.io/package/react-simple-toasts.md) — 1.9K weekly downloads

## Recent versions

- 1.1.3 (latest) — 2018-12-24
- 1.1.0 — 2018-12-22
- 1.0.9 — 2018-12-22
- 0.1.1 — 2018-12-22
- 0.1.0 — 2018-12-22
- 1.0.1 — 2018-09-24
- 1.0.0 — 2018-09-24

## README

Convert string to [baseline characters], **limited support**.

Only the following characters can be baselined:
- `⁰¹²³⁴⁵⁶⁷⁸⁹⁺⁻⁼⁽⁾₀₁₂₃₄₅₆₇₈₉₊₋₌₍₎ₔᵝᵞᵟᶿᶥᵠᵡᵦᵧᵨᵩᵪ`
- `ᴬᴮᴰᴱᴳᴴᴵᴶᴷᴸᴹᴺᴼᴾᴿᵀᵁⱽᵂᶦᶫᶰᶸᵃᵇᶜᵈᵉᶠᵍʰⁱʲᵏˡᵐⁿᵒᵖʳˢᵗᵘᵛʷˣʸᶻₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓ`

```javascript
const toBaseLine = require('@extra-string/to-baseline');
// toBaseLine(<string>, [superseparator], [subseparator])

toBaseLine('ax²+bx+c');
// 'ax2+bx+c'
toBaseLine('H₂SO₄ beaker');
// 'H2SO4 beaker'
toBaseLine('6.626 x 10⁻³⁴', ['^']);
// '6.626 x 10^-34'
toBaseLine('1010₂', null, [' (base-', ')']);
// '1010 (base-2)'
```


[![extra-string](https://i.imgur.com/y4YVIau.jpg)](https://www.npmjs.com/package/extra-string)

[baseline characters]: https://en.wikipedia.org/wiki/Unicode_subscripts_and_superscripts

---
_Source: https://npm.io/package/@extra-string/to-baseline · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
