Research
Security News
Threat Actor Exposes Playbook for Exploiting npm to Build Blockchain-Powered Botnets
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
Reuse scratch memory for intermediate calculations. This is useful for avoiding costly reallocations and for keeping temporary array data in hot cache between procedure calls.
npm install scratch
require("scratch")(n[, dtype])
Returns a temporary array buffer for intermediate calculations.
n
is the length of the arraydtype
is an optional string which specifies the type of the typed array to return. Possible options are:
"uint8"
"uint16"
"uint32"
"int8"
"int16"
"int32"
"float32"
"float64"
undefined
- Returns an ArrayBufferReturns A typed array of length n
This module is non-reentrant. Once you have allocated scratch memory, you should not call any submodules, or else they may overwrite the contents of the data in scratch. You should only use this module if you know what you are doing.
(c) 2013 Mikola Lysenko. MIT License
FAQs
Scratch memory
The npm package scratch receives a total of 2 weekly downloads. As such, scratch popularity was classified as not popular.
We found that scratch demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
Security News
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
Security News
Research
A malicious npm package disguised as a WhatsApp client is exploiting authentication flows with a remote kill switch to exfiltrate data and destroy files.