pions
TypeScript icon, indicating that this package has built-in type declarations

1.0.383 • Public • Published

pions

pions — Fundamental Building Block Functions

THIS PROJECT IS STILL IN THE DESIGN PHASE

IDEAS & CONTRIBUTIONS ARE WELCOME

An Open Source Universe Project


Contents

Features ✨

  • Mapping Functions Planned
  • Aggregation Functions Planned
  • Reduce Functions Planned
  • Typescript Support Planned

Install 🛠

npm install pions

Usage 🔭

Read more about the Design behind pions here.

import { reduceOverValues } from 'pions';

const data = {
  'Group 1': [1,2,3,4,...],
  'Group 2': [1,1,2,3,...],
  'Group 3': [1,4,9,16,...],
}

const counts = reduceOverValues(data, ({ value }) => value.length)
// { 'Group 1': 50, 'Group 2': 15, 'Group 3': 32 }

const sums = reduceOverValues(data, ({ aggregate, value }) => aggregate + value)
// { 'Group 1': 1275, 'Group 2': 1596, 'Group 3': 11440 }

Documentation 🛰

pions is under active development, documentation will be added once an initial release is ready.

Contributing 🌎

We would love for you to contribute your ideas, code, & fixes to pions.

We encourage everyone to read our Design Document to learn more about the thought process behind pions.

Also check out the rewards offered for contributing to the Open Source Universe.

License ⚖️

MIT

Package Sidebar

Install

npm i pions

Weekly Downloads

20

Version

1.0.383

License

MIT

Unpacked Size

7.5 kB

Total Files

6

Last publish

Collaborators

  • a-n-u-b-i-s