Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/team-griffin/clumpit
https://github.com/team-griffin/clumpit
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/team-griffin/clumpit
- Owner: team-griffin
- License: mit
- Created: 2019-04-08T19:12:26.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-04-10T12:28:45.000Z (over 5 years ago)
- Last Synced: 2024-09-19T23:13:18.231Z (3 months ago)
- Language: TypeScript
- Size: 86.9 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
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',
});
});```