race-until Race a promise against a time bomb promise. const {raceUntil} = require('race-until'); raceUntil(promise, timeout = 3000, timeoutResponse = 'timeout') Usage Please have a look at project's tests. License The MIT License (MIT)