Socket
Socket
Sign inDemoInstall

@resvg/resvg-js

Package Overview
Dependencies
Maintainers
2
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@resvg/resvg-js - npm Package Compare versions

Comparing version 2.0.0-alpha.0 to 2.0.0-alpha.1

26

package.json
{
"name": "@resvg/resvg-js",
"version": "2.0.0-alpha.0",
"version": "2.0.0-alpha.1",
"description": "A high-performance SVG renderer, powered by Rust based resvg and napi-rs",

@@ -143,15 +143,15 @@ "main": "index.js",

"optionalDependencies": {
"@resvg/resvg-js-win32-x64-msvc": "2.0.0-alpha.0",
"@resvg/resvg-js-darwin-x64": "2.0.0-alpha.0",
"@resvg/resvg-js-linux-x64-gnu": "2.0.0-alpha.0",
"@resvg/resvg-js-linux-x64-musl": "2.0.0-alpha.0",
"@resvg/resvg-js-linux-arm64-gnu": "2.0.0-alpha.0",
"@resvg/resvg-js-win32-ia32-msvc": "2.0.0-alpha.0",
"@resvg/resvg-js-linux-arm-gnueabihf": "2.0.0-alpha.0",
"@resvg/resvg-js-darwin-arm64": "2.0.0-alpha.0",
"@resvg/resvg-js-android-arm64": "2.0.0-alpha.0",
"@resvg/resvg-js-android-arm-eabi": "2.0.0-alpha.0",
"@resvg/resvg-js-linux-arm64-musl": "2.0.0-alpha.0",
"@resvg/resvg-js-win32-arm64-msvc": "2.0.0-alpha.0"
"@resvg/resvg-js-win32-x64-msvc": "2.0.0-alpha.1",
"@resvg/resvg-js-darwin-x64": "2.0.0-alpha.1",
"@resvg/resvg-js-linux-x64-gnu": "2.0.0-alpha.1",
"@resvg/resvg-js-linux-x64-musl": "2.0.0-alpha.1",
"@resvg/resvg-js-linux-arm64-gnu": "2.0.0-alpha.1",
"@resvg/resvg-js-win32-ia32-msvc": "2.0.0-alpha.1",
"@resvg/resvg-js-linux-arm-gnueabihf": "2.0.0-alpha.1",
"@resvg/resvg-js-darwin-arm64": "2.0.0-alpha.1",
"@resvg/resvg-js-android-arm64": "2.0.0-alpha.1",
"@resvg/resvg-js-android-arm-eabi": "2.0.0-alpha.1",
"@resvg/resvg-js-linux-arm64-musl": "2.0.0-alpha.1",
"@resvg/resvg-js-win32-arm64-msvc": "2.0.0-alpha.1"
}
}

@@ -81,9 +81,9 @@ # resvg-js

```js
import { render, initWasm } from '@resvg/resvg-js-wasm'
import { render, initWasm } from '@resvg/resvg-wasm'
;(async function () {
// The wasm must be initialized first
await initWasm(fetch('./index_bg.wasm'))
// The wasm must be initialized first,
await initWasm(fetch('/your/path/index_bg.wasm'))
const opts = {
fitTo: {
mode: 'width',
mode: 'width', // If you need to change the size
value: 800,

@@ -152,3 +152,3 @@ },

- Install `Node.js@10+` which fully supported `Node-API`
- install `wasm-pack`
- Install `wasm-pack`
```bash

@@ -155,0 +155,0 @@ curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc