Security News
Internet Archive Hacked, 31 Million Record Compromised
The Internet Archive's "Wayback Machine" has been hacked and defaced, with 31 millions records compromised.
yoga-wasm-web
Advanced tools
Yoga but in WebAssembly and ASM.js.
Install with your package manager:
pnpm i yoga-wasm-web
npm i yoga-wasm-web
yarn add yoga-wasm-web
To use the ASM.js build:
import initYoga, { ALIGN_CENTER } from 'yoga-wasm-web/asm'
const Yoga = initYoga()
const node = Yoga.Node.create()
node.setAlignContent(ALIGN_CENTER)
To use the WASM build (take Node.js as an example):
import fs from 'fs'
import initYoga, { ALIGN_CENTER } from 'yoga-wasm-web'
const Yoga = await initYoga(
fs.readFileSync('./node_modules/yoga-wasm-web/dist/yoga.wasm')
)
const node = Yoga.Node.create()
node.setAlignContent(ALIGN_CENTER)
You can use other ways to provide the WASM binary too.
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
And run the tests:
pnpm test
This project was started as opinionated fork from pinqy520/yoga-layout-wasm
FAQs
Unknown package
The npm package yoga-wasm-web receives a total of 501,338 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
The Internet Archive's "Wayback Machine" has been hacked and defaced, with 31 millions records compromised.
Security News
TC39 is meeting in Tokyo this week and they have approved nearly a dozen proposals to advance to the next stages.
Security News
Our threat research team breaks down two malicious npm packages designed to exploit developer trust, steal your data, and destroy data on your machine.