| Name | Last modified | Size | Description | |
|---|---|---|---|---|
| Parent Directory | - | |||
| package.json | 2025-10-29 15:57 | 696 | ||
| README.md | 2025-10-29 15:57 | 517 | 38d15e7 removed strapi.query from api controllers to repair migration on dev server? [كارل مبارك] | |
| example.js | 2025-10-29 15:57 | 359 | ||
| index.js | 2025-10-29 15:57 | 2.0K |
# Long timeouts
Long timeout makes it possible to have a timeout or interval that is longer than 24.8 days (2^31-1 milliseconds).
## Usage
```js
var lt = require('long-timeout')
var timeout = lt.setTimeout(function() {
console.log('in 30 days')
}, 1000 * 60 * 60 * 24 * 30)
var interval = lt.setInterval(function() {
console.log('every 30 days')
}, 1000 * 60 * 60 * 24 * 30)
// Clear them
lt.clearTimeout(timeout)
lt.clearInterval(interval)
```
## Install
npm install long-timeout
## Licence
MIT