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

@ephox/katamari

Package Overview
Dependencies
Maintainers
1
Versions
97
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ephox/katamari

Basic data type library

  • 2.5.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2.7K
decreased by-4.07%
Maintainers
1
Weekly downloads
 
Created
Source

Description

katamari is a collection of various data structures and reusable higher-order functions. It does not bundle any commands. It is only a collection of modules.

Installation

katamari is available as an npm package. You can install it via the npm package @ephox/katamari

Install from npm

npm install @ephox/katamari.

Usage

Note, refrain from using any modules that are not in the api package.

Below is a list of commonly used parts of katamari

Data Structures

Optional Data Types

Option: A representation of None or Some(x) Result: A representation of Error(str) or Value(v)

Asynchronous Data Types

Future: An abstraction over an asynchronous value FutureResult: A composition of a Result and a Future LazyValue: An asynchronous value that is only calculated once

Mutable Data Types

Cell: A mutable piece of data' Singleton: A mutable piece of optional data

Immutable Data Types

Struct: An immmutable collection of fields

Algebraic Data Types

Adt: An approximate representation of an Algebraic Data Type in JavaScript. It is based on the Church Encoding method.

Higher-order Functions

Arr: collection of functions that operate on arrays Obj: collection of functions that operate on JavaScript objects Merger: collection of functions to merge JavaScript objects

Tests

katamari uses bedrock to run atomic tests. The tests are chiefly written using jsverify

Running Tests

$ yarn test

FAQs

Package last updated on 12 Aug 2019

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