JSPM

unload-object

1.0.3
    • ESM via JSPM
    • ES Module Entrypoint
    • Export Map
    • Keywords
    • License
    • Repository URL
    • TypeScript Types
    • README
    • Created
    • Published
    • Downloads 14
    • Score
      100M100P100Q45082F
    • License MIT

    Unload any object

    Package Exports

    • unload-object
    • unload-object/index.js

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (unload-object) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    Unload any object

    This software allows to unload any object, i.e. Timers, Sockets.

    It is usefull when a function returns something, that may be terminated in different ways.

    Supported JavaScript object

    • Node.js: Timers
    • Node.js: Sockets
    • Browser: Timers

    Install & Usage

    npm install unload-object
    const unload = require("unload-object").unload;
    
    var t1 = setTimeout(() => { console.log("Hi"); });
    unload(t1); // t1 never fires

    License

    This software is released under the MIT license.

    Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.