Security News
Cloudflare Adds Security.txt Setup Wizard
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
simdle-native
Advanced tools
https://github.com/holepunchto/libsimdle JavaScript bindings for Node.js.
npm install simdle-native
const { cnt } = require('simdle-native')
cnt(Buffer.alloc(16, 0xff))
// <Buffer 08 08 08 08 08 08 08 08 08 08 08 08 08 08 08 08>
The lane width of all APIs is determined by the input buffer. That is, if providing a Uint8Array
the lane width will be 8 bits, if providing a Uint16Array
the lane width will be 16 bits and so on.
const result = allo(buffer)
Check if the buffer contains only ones.
const result = allz(buffer)
Check if the buffer contains only zeros.
const result = and(a, b[, result])
Compute the bitwise AND of a
and b
. If result
is not provided, a fresh buffer is allocated. The result
buffer is returned to the caller.
const result = clear(a, b[, result])
Clear the bits in b
from a
. If result
is not provided, a fresh buffer is allocated. The result
buffer is returned to the caller.
const result = clo(buffer[, result])
Count the number of leading ones in buffer
, storing the result in result
. If result
is not provided, a fresh buffer is allocated. The result
buffer is returned to the caller.
const result = clz(buffer[, result])
Count the number of leading zeroes in buffer
, storing the result in result
. If result
is not provided, a fresh buffer is allocated. The result
buffer is returned to the caller.
const result = cnt(buffer[, result])
Compute the population count in buffer
, storing the result in result
. If result
is not provided, a fresh buffer is allocated. The result
buffer is returned to the caller.
const result = cto(buffer[, result])
Count the number of trailing ones in buffer
, storing the result in result
. If result
is not provided, a fresh buffer is allocated. The result
buffer is returned to the caller.
const result = ctz(buffer[, result])
Count the number of trailing zeroes in buffer
, storing the result in result
. If result
is not provided, a fresh buffer is allocated. The result
buffer is returned to the caller.
const result = not(buffer[, result])
Compute the bitwise NOT in buffer
, storing the result in result
. If result
is not provided, a fresh buffer is allocated. The result
buffer is returned to the caller.
const result = or(a, b[, result])
Compute the bitwise OR of a
and b
. If result
is not provided, a fresh buffer is allocated. The result
buffer is returned to the caller.
const result = sum(buffer)
Compute the sum of buffer
as a bigint
.
const result = xor(a, b[, result])
Compute the bitwise XOR of a
and b
. If result
is not provided, a fresh buffer is allocated. The result
buffer is returned to the caller.
Apache-2.0
FAQs
libsimdle JavaScript bindings for Node.js
The npm package simdle-native receives a total of 1,493 weekly downloads. As such, simdle-native popularity was classified as popular.
We found that simdle-native demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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.
Security News
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
Security News
The Socket Research team breaks down a malicious npm package targeting the legitimate DOMPurify library. It uses obfuscated code to hide that it is exfiltrating browser and crypto wallet data.
Security News
ENISA’s 2024 report highlights the EU’s top cybersecurity threats, including rising DDoS attacks, ransomware, supply chain vulnerabilities, and weaponized AI.