fraction-unicode
String representation of a number in fractional form
Install
yarn add fraction-unicode
Usage
import fractionUnicode from 'fraction-unicode';
fractionUnicode(1, 2);
// '½'
fractionUnicode(7, 16);
// '⁷⁄₁₃'
License
MIT © Abraham Hernandez