Package Exports
- script-case
- script-case/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (script-case) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Script Case 
Make text superscript or subscript.
Install
npm install script-caseUsage
const scriptCase = require("script-case");
scriptCase.superscript("hello world");
//=> 'ʰᵉˡˡᵒ ʷᵒʳˡᵈ'
scriptCase.subscript("hello world")
//=> 'ₕₑₗₗₒ wₒᵣₗd'You can also get the internal conversion dictionaries:
const superscript = require("script-case/superscript")
//=> { "0": "⁰", "1": "¹", ... }
const subscript = require("script-case/subscript")
//=> { "0": "₀", "1": "₁", ... }API
scriptCase.superscript(input)
input
Type: string
The string to convert.
scriptCase.subscript(input)
input
Type: string
The string to convert.
