Socket
Book a DemoInstallSign in
Socket

block.js

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

block.js

A function used to block the javascript for specify millisecond

1.1.1
latest
Source
npmnpm
Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

block.js

A simple javascript utility for blocking thread specified milliseconds

Block.js

You may have to simulate some operations take specified time, and Block.js is there for you.

Install with npm

npm install block.js --save

Use with webpack:

import block from 'block.js'

Usage

The blockfunction takes one argument which must be number as millisecond you want to block.

console.time('block about 400ms')
block(400)
console.timeEnd('block about 400ms')

License

MIT. Copyright (c) 2017 Joe Zheng.

Keywords

utils

FAQs

Package last updated on 07 Feb 2017

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.