AlessandroCipolletti / my-js-math-and-ui-utils

A bunch of typescript math and ui utils that I use a lot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

js-math-and-ui-utils

Typescript library with all those utils I often use in my projects.

It includes Math, Dom, Canvas, UI, Animations, Colors, Image, and generic javascript utils. Each one with its own module and documentation.

Getting Started

Installing

npm i --save js-math-and-ui-utils

Importing

You can import the whole library, just one module, as well as each method one by one. This allows you to keep your javascript bundle as small as possible.

import { * as Utils } from 'js-math-and-ui-utils'
Utils.roundNumber(myNumberVar, requiredDecimals)

import { * as MathUtils } from 'js-math-and-ui-utils/mathUtils'
MathUtils.roundNumber(myNumberVar, requiredDecimals)

import roundNumber from 'js-math-and-ui-utils/mathUtils/roundNumber'
roundNumber(myNumberVar, requiredDecimals)

Modules

Check the docs for each module:

Authors

Alessandro Cipolletti

License

This project is licensed under the MIT License - see the LICENSE file for details

About

A bunch of typescript math and ui utils that I use a lot

License:MIT License


Languages

Language:TypeScript 83.8%Language:JavaScript 16.2%