js-math-and-ui-utils
TypeScript icon, indicating that this package has built-in type declarations

1.2.15 • Public • Published

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

Package Sidebar

Install

npm i js-math-and-ui-utils

Weekly Downloads

1

Version

1.2.15

License

MIT

Unpacked Size

507 kB

Total Files

447

Last publish

Collaborators

  • alessandro.cipolletti