Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@extra-string/to-baseline

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@extra-string/to-baseline

Convert string to baseline characters, limited support.

  • 1.0.9
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
11
increased by266.67%
Maintainers
1
Weekly downloads
 
Created
Source

Convert string to baseline characters, limited support.

Only the following characters can be baselined:

  • ⁰¹²³⁴⁵⁶⁷⁸⁹⁺⁻⁼⁽⁾₀₁₂₃₄₅₆₇₈₉₊₋₌₍₎ₔᵝᵞᵟᶿᶥᵠᵡᵦᵧᵨᵩᵪ
  • ᴬᴮᴰᴱᴳᴴᴵᴶᴷᴸᴹᴺᴼᴾᴿᵀᵁⱽᵂᶦᶫᶰᶸᵃᵇᶜᵈᵉᶠᵍʰⁱʲᵏˡᵐⁿᵒᵖʳˢᵗᵘᵛʷˣʸᶻₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓ
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

Keywords

FAQs

Package last updated on 22 Dec 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc