1.1.3 • Published 5 years ago

@extra-string/to-subscript v1.1.3

Weekly downloads
8
License
MIT
Repository
github
Last release
5 years ago

Convert string to subscript characters, limited support.

Only following characters can be superscripted:

  • () + - 0123456789 =
  • a e hijklmnop rstuv x
const toSubscript = require('@extra-string/to-subscript');
// toSubscript(<string>)

toSubscript('hello world');
// 'ₕₑₗₗₒ wₒᵣₗd'
toSubscript('DECCAN PLATEAU');
// 'DECCAN PLATEAU'
'KNO'+toSubscript('3');
// 'KNO₃' (Potassium Nitrate)

extra-string

1.1.3

5 years ago

1.1.0

5 years ago

1.0.9

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago

1.0.1

6 years ago

1.0.0

6 years ago