An open API service indexing awesome lists of open source software.

https://github.com/abranhe/fraction-unicode

String representation of a number in fractional form
https://github.com/abranhe/fraction-unicode

fraction javascript math unicode

Last synced: 3 months ago
JSON representation

String representation of a number in fractional form

Awesome Lists containing this project

README

          

# fraction-unicode

[![GH Status](https://github.com/abranhe/fraction-unicode/workflows/build/badge.svg)](https://github.com/abranhe/fraction-unicode/actions)
[![NPM](https://img.shields.io/npm/v/fraction-unicode)](https://npmjs.org/fraction-unicode)
[![License](https://img.shields.io/npm/l/fraction-unicode)](https://npmjs.org/fraction-unicode)

> String representation of a number in fractional form

## Install

```bash
yarn add fraction-unicode
```

## Usage

```js
import fractionUnicode from 'fraction-unicode';

fractionUnicode(1, 2);
// '½'

fractionUnicode(7, 13);
// '⁷⁄₁₃'
```

## License

MIT © [Abraham Hernandez](https://abranhe.com)