
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
yoga-wasm-web
Advanced tools
Yoga but in WebAssembly and ASM.js. This is an opinionated fork from pinqy520/yoga-layout-wasm with the following changes:
gap
.YGMeasureMode
binding.YGUnit
binding.DYNAMIC_EXECUTION=0
for emcc
to remove eval
and Function
executions.TEXTDECODER=0
.ENVIRONMENT
to be web
.pre.js
to set document
as this
.To develop this project locally, you need to clone the repo and fetch the yoga submodule first. Also, emcc is required to build this project too.
After that, install npm dependencies:
pnpm i
And run the build script:
pnpm build
To use the WASM build (take Node.js as an example):
import fs from 'fs'
import initYoga from 'yoga-wasm-web'
const yoga = await initYoga(
fs.readFileSync('./node_modules/yoga-wasm-web/dist/yoga.wasm')
)
You can use other ways to provide the WASM binary too.
To use the ASM.js build:
import initYoga from 'yoga-wasm-web/asm'
const yoga = initYoga()
FAQs
Unknown package
The npm package yoga-wasm-web receives a total of 507,327 weekly downloads. As such, yoga-wasm-web popularity was classified as popular.
We found that yoga-wasm-web 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.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.