I have just published my first open source npm package, lie.js.
yarn add lie.js
It provides two useful functions creating a Promise that times out with a given error and another that will succeed with a default after a timeout.
The practical use of these is that you can use them with Promise.race to create functions with a bounded response time. It makes it easier to keep within a time budget if you can say go get a value or return a default if too slow.