Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
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 460,309 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.