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.
@jitl/quickjs-node-cjs-release-asyncify-wasm
Advanced tools
Variant of quickjs library: Node.js CommonJS module
Node.js CommonJS module
This generated package is part of quickjs-emscripten. It contains a variant of the quickjs WASM library, and can be used with quickjs-emscripten-core.
import variant from "@jitl/quickjs-node-cjs-release-asyncify-wasm"
import { newQuickJSAsyncWASMModuleFromVariant } from "quickjs-emscripten-core"
const QuickJS = await newQuickJSAsyncWASMModuleFromVariant(variant)
This variant was built with the following settings:
The original bellard/quickjs library.
Optimized for performance; use when building/deploying your application.
This variant exports a CommonJS module, which is faster to load and run in Node.js.
Build run through the ASYNCIFY WebAssembly transform. Larger and slower. Allows synchronous calls from the WASM runtime to async functions on the host. The extra magic makes this variant slower than sync variants. Note that both variants support regular async functions. Only adopt ASYNCIFY if you need to!
Has a separate .wasm file. May offer better caching in your browser, and reduces the size of your JS bundle. If you have issues, try a 'singlefile' variant.
Full variant JSON description:
{
"library": "quickjs",
"releaseMode": "release",
"syncMode": "asyncify",
"emscriptenInclusion": "wasm",
"description": "Node.js CommonJS module",
"emscriptenEnvironment": ["node"],
"moduleSystem": "commonjs"
}
Variant-specific Emscripten build flags:
[
"-s ASYNCIFY=1",
"-DQTS_ASYNCIFY=1",
"-DQTS_ASYNCIFY_DEFAULT_STACK_SIZE=81920",
"-s ASYNCIFY_STACK_SIZE=81920",
"-s ASYNCIFY_REMOVE=@$(BUILD_WRAPPER)/asyncify-remove.json",
"-s ASYNCIFY_IMPORTS=@$(BUILD_WRAPPER)/asyncify-imports.json",
"-lasync.js",
"-Oz",
"-flto",
"--closure 1",
"-s FILESYSTEM=0",
"-s ENVIRONMENT=node"
]
FAQs
Variant of quickjs library: Node.js CommonJS module
We found that @jitl/quickjs-node-cjs-release-asyncify-wasm demonstrated a healthy version release cadence and project activity because the last version was released less than 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.
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.