Socket
Socket
Sign inDemoInstall

@mathigon/core

Package Overview
Dependencies
Maintainers
1
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mathigon/core

JavaScript utilities library containing function wrappers, string and array helper functions, type checking and event classes.


Version published
Weekly downloads
1.7K
decreased by-34.27%
Maintainers
1
Weekly downloads
 
Created
Source

Core.js

Core.js is a library of JavaScript utilities

JavaScript utilities library containing function wrappers, string and array helper functions, type checking and event classes. It was developed for the mathematics education project Mathigon.org.

npm npm

Features

  • Function wrappers for caching and throttling (cache(), throttle())
  • Object handling (shallowCopy(), deepCopy(), extend(), some(), …)
  • Array generation (tabulate(), list())
  • Array utilities (total(), flatten(), chunk(), intersect(), …)
  • String utilities (toCamelCase(), isPalindrome(), autocorrect(), …)
  • Functions for type checking (typeOf(), isString(), isInteger(), …)
  • Evented class, supporting .on(), .off() and .trigger() methods
  • Misc utilities (uid(), isOneOf(), clamp(), …)

Usage

First, install core.js from NPM using

npm install @mathigon/core --save

Core.js uses ES6 imports. While some browsers and platforms now support this feature, we recommend using a transpiler such as Babel or Rollup.

Import all functions and classes you need, using

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

Make sure that you configure your compiler to correctly resolve these imports. For Rollup, we recommend using the rollup-plugin-node-resolve plugin.

Contributing

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

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

Keywords

FAQs

Package last updated on 21 Apr 2018

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