Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/team-griffin/clumpit


https://github.com/team-griffin/clumpit

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        

# clumpit

## Usage

```js

import createClumpit from 'clumpit';

const clumpit = createClumpit({
dedupe: true,
});

const a = clumpit.add('1', {
foo: 'bar',
});

const b = clumpit.add('1', {
foo: 'quz',
});

const c = clumpit.add('2', {
foo: 'baz',
});

const d = clumpit.run((items) => {
return Promise.resolve({
'1': 'x',
'2': 'y',
});
});

```