New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

mike-jsutils

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mike-jsutils

my jsutils

  • 1.0.12
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

mike-jsutils

mikewootc's jsutils:

  • Promise with timeout

Install

npm install mike-jsutils

or:

yarn add mike-jsutils

Usage

Promise with timeout

    const {TimedPromise} = require('mike-jsutils');

    let tp = TimedPromise((resolve, reject) => {
        setTimeout(() => {
            resolve();
        }, 2000);
    }, 1000);

Notice: this TimedPromise won't call resolve() again after timeout.

FAQs

Package last updated on 09 Aug 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc