▲ rubico, a functional (programming) promise library at github.com▼1 up and 0 down, posted by richytong 1676 days ago 3 comments
richytong 1676 days ago. link 1 point ▲ ▼rubico resolves on two promises: 1. simplify asynchronous programming in JavaScript 2. enable functional programming in JavaScript example request ```javascript // promise chains fetch('https://jsonplaceholder.typicode.com/todos/1') .then(res => res.json()) .then(console.log) // > {...} // async/await void (async () => { const res = await fetch('https://jsonplaceholder.typicode.com/todos/1') const data = await res.json() console.log(data) // > {...} })() // rubico import { pipe } from 'rubico.js' pipe([ fetch, res => res.json(), console.log, // > {...} ])('https://jsonplaceholder.typicode.com/todos/1') ```