@dv27/timedout

2.0.1 • Public • Published

timedout

Executes a function after idle timeout.

installation

npm install @dv27/timedout

Usage

Import in your application

// @ts-ignore
import {TimedoutService} from '@dv27/timedout';

then

    const t = new TimedoutService();
    t.start(logout, 180000 )

here logout is some function you may want to execute after timeout

/@dv27/timedout/

    Package Sidebar

    Install

    npm i @dv27/timedout

    Weekly Downloads

    0

    Version

    2.0.1

    License

    ISC

    Unpacked Size

    2 kB

    Total Files

    4

    Last publish

    Collaborators

    • dinesh-vja