JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 22
  • Score
    100M100P100Q73804F
  • License MIT

Lightweight TypeScript math utility functions

Package Exports

  • @alessiofrittoli/math-utils
  • @alessiofrittoli/math-utils/format
  • @alessiofrittoli/math-utils/helpers
  • @alessiofrittoli/math-utils/interpolation
  • @alessiofrittoli/math-utils/random
  • @alessiofrittoli/math-utils/types

Readme

Math Utils 🤓

Version 0.2.1

Lightweight TypeScript math utility functions

This lightweight TypeScript utility library comes with common and utility math functions.

Everything is exported from the root of this library but specific paths can be used too (especially when dynamically importing functions and tree shaking has no effect).

Table of Contents


Getting started

Run the following command to start using math-utils in your projects:

npm i @alessiofrittoli/math-utils

or using pnpm

pnpm i @alessiofrittoli/math-utils

ESLint

warnings / errors check.

pnpm lint

Jest

Run all the defined test suites by running the following:

# Run tests and watch file changes.
npm run test

# Run tests in a CI environment.
npm run test:ci

Security

If you believe you have found a security vulnerability, we encourage you to responsibly disclose this and NOT open a public issue. We will investigate all legitimate reports. Email security@alessiofrittoli.it to disclose any security vulnerabilities.

Made with ☕

Alessio Frittoli
https://alessiofrittoli.it | info@alessiofrittoli.it