Security News
ESLint is Now Language-Agnostic: Linting JSON, Markdown, and Beyond
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
@mathigon/core
Advanced tools
TypeScript utilities library containing function wrappers, string and array helper functions, event classes and color utilities.
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.
cache()
, throttle()
)tabulate()
, repeat()
, list()
)total()
, flatten()
, chunk()
, intersect()
, …)toCamelCase()
, isPalindrome()
, autoCorrect()
, …).on()
, .off()
and .trigger()
methodsuid()
, isOneOf()
, …)First, install Core.ts from NPM using
npm install @mathigon/core
We recommend using Core.ts together with Rollup, using using the rollup-plugin-node-resolve plugin.
Now, simply import all functions and classes you need, using
import {tabulate, toCamelCase, EventTarget} from '@mathigon/core'
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
FAQs
TypeScript utilities library containing function wrappers, string and array helper functions, event classes and color utilities.
The npm package @mathigon/core receives a total of 1,363 weekly downloads. As such, @mathigon/core popularity was classified as popular.
We found that @mathigon/core demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
Security News
Members Hub is conducting large-scale campaigns to artificially boost Discord server metrics, undermining community trust and platform integrity.
Security News
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.