@dankreiger/puppy-fp
v1.0.2
Published
Woof woof and bow wow
Downloads
11
Maintainers
Readme
puppy-fp
For puppies that are afraid of the outside world.
Documentation
License
Installation
Install with npm
npm install puppy-fp
Badges
Add badges from somewhere like: shields.io
Usage/Examples
Standalone
import { taskify } from 'puppy-fp';
const longRunningTask = () =>
new Promise((resolve) => setTimeout(resolve, 1000));
const runTask = taskify(longRunning);
await runTask(); // takes ca. 1000ms
await runTask(); // runs immediately (result is memoized)
Integrated with fp-ts
or any other library with a Task
implementation
TODO:
- [ ] Add more functions