0.0.10 • Published 1 year ago

ogh-aggregator v0.0.10

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

ogh-aggregator

Tool designed to ease the aggregation of values within arrays of objects in a typesafe fashion.

The tool aggregates the array in a single pass to reduce the amount of array operations going on, which I hope will make larger arrays quicker to aggregate.

I also intend to add some worker process features down the line so that large arrays can be aggregated without tying up the main thread.

This is my first NPM package, and I am aware there are tools that can do this type of stuff a lot better than this does, but this is more of a learning process for me, as well as a way of making code reuse easier across my projects.

Usage

Install the package via npm or yarn

npm install ogh-aggregator
yarn add ogh-aggregator

ogh-aggregator supports module and commonjs. Simply import your desired aggregator using import or require to start aggregating.

Functions

aggregateObjectArrayByGroup\<T>

First group an array of objects of type T by a property of T with the value type string, the perform aggregations on the requested values.

0.0.10

1 year ago

0.0.9

1 year ago

0.0.8

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago