A downloadable library

FractionJS

FractionJS is an implementation of fractions for Javascript.

Steps

  1. Import into the project as a submodule to the desired folder (per the readme)
  2. import into your project

For ES6:

import { Fraction } from "./path/to/folder/Fraction.mjs"

For CommonJS

const Fraction = require("./path/to/folder/Fraction.cjs")


Leave a comment

Log in with itch.io to leave a comment.