Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@mathigon/core

Package Overview
Dependencies
Maintainers
1
Versions
64
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mathigon/core

TypeScript utilities library containing function wrappers, string and array helper functions, event classes and color utilities.

  • 1.1.16
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
9.1K
decreased by-22.14%
Maintainers
1
Weekly downloads
 
Created
Source

Core.ts

Build Status npm npm

Core.ts is a library of TypeScript utility function and classes, including array and string helpers, function wrappers and event classes. It was developed for Mathigon.org, an award-winning mathematics education project.

Features

  • Function wrappers for caching and throttling (cache(), throttle())
  • Array generation (tabulate(), repeat(), list())
  • Array utilities (total(), flatten(), chunk(), intersect(), …)
  • String utilities (toCamelCase(), isPalindrome(), autoCorrect(), …)
  • Event Target class, supporting .on(), .off() and .trigger() methods
  • Color parsing, conversion and interpolation
  • Misc utilities (uid(), isOneOf(), …)

Usage

First, install Core.ts from NPM using

npm install @mathigon/core

Now, simply import all functions and classes you need, using

import {tabulate, toCamelCase, EventTarget} from '@mathigon/core'

Contributing

We welcome community contributions: please file any bugs you find or send us pull requests with improvements. You can find out more on Mathigon.io.

Before submitting a pull request, you will need to sign the Mathigon Individual Contributor License Agreement.

Copyright © Mathigon (dev@mathigon.org)
Released under the MIT license

Keywords

FAQs

Package last updated on 11 Feb 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc