long-settimeout
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

long-settimeout

Master CI Status Latest version Supported Node version

Long timeout makes it possible to have a timeout that is longer than 24.8 days (2^31-1 milliseconds).

Installation

yarn add long-settimeout

Usage

import { setLongTimeout, clearLongTimeout } from 'long-settimeout';
 
const timeout = setLongTimeout(() => {
  console.log('in 30 days');
}, 1000 * 60 * 60 * 24 * 30);
 
clearLongTimeout(timeout);

Local Development

yarn start

Runs the project in development/watch mode. Your library will be rebuilt upon changes.

yarn build

Bundles the package to the dist folder. The package is optimized and bundled with Rollup into multiple formats (CommonJS, UMD, and ES Module).

yarn test

Runs the test watcher (Jest) in an interactive mode. By default, runs tests related to files changed since the last commit.

License

This is open source software licensed as MIT.

Package Sidebar

Install

npm i long-settimeout

Weekly Downloads

132

Version

1.0.1

License

MIT

Unpacked Size

19.5 kB

Total Files

12

Last publish

Collaborators

  • kamahl19