Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@resvg/resvg-js-linux-x64-musl

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-linux-x64-musl - npm Package Versions

12

2.0.0-alpha.0

Diff

Changelog

Source

[2.0.0-alpha.0] - 2022-02-15

resvg-js now supports WebAssembly 🎉 What can I do now?

  • You can convert SVG to PNG in the browser or Web Worker
  • We provide Playground for direct use: https://resvg-js.vercel.app

With WebAssembly, resvg-js gains broader cross-platform compatibility, all by loading only about 2MB of Wasm files. And, the API is consistent with the Node.js side.

The current version of Wasm does not support loading fonts, so please submit an issue if you have a request.

Added

  • feat: support WebAssembly(wasm32 target) via wasm-bindgen (#51)
  • feat: add WebAssembly playground
  • feat: upgrade resvg to 0.21.0
  • feat: upgrade to napi-rs 2.1.0 (#60)
  • chore: improved error message when output PNG size is 0 (#58)
  • doc: add Node.js and WebAssembly usage documentation (#63)
yisi
published 1.4.0 •

Changelog

Source

[1.4.0] - 2022-01-24

Added

feat: support for glibc 2.12(via zig-cc) (#50)

Changed

  • fix: handle lld not found (#46)
  • fix: js-binding for android-arm64 and android-arm-eabi (#53)
yisi
published 1.3.0 •

Changelog

Source

[1.3.0] - 2022-01-01

Added

  • feat: upgrade to resvg 0.20.0(tiny-skia to 0.6.2).
  • chore: add oslllo-svg2 to the examples and bench.
yisi
published 1.2.0 •

Changelog

Source

[1.2.0] - 2021-12-25

Added

  • feat: upgrading to napi-rs v2.
  • feat: support Android armv7(@resvg/resvg-js-android-arm-eabi).

Changed

  • fix: default_font_family changed from Times New Roman to Arial. This is closer to the default rendering font in the browser.
yisi
published 1.1.0 •

Changelog

Source

[1.1.0] - 2021-11-11

Added

  • feat: implement renderAsync() function. By @Brooooooklyn

    We have made a major upgrade to napi-rs, from v1 to 2.x alpha. This allows better support for asynchronous binding and automatic generation of TypeScript definitions. Now you can enjoy async/await.

    const { renderAsync } = require('@resvg/resvg-js')
    
    async function main() {
      const pngData = await renderAsync(/* SVG string or buffer */)
    }
    
  • feat: The input to the render() and renderAsync() functions supports buffer.

  • feat: improved webpack support, no more need @node-rs/helper dependency.

    The @node-rs/helper is convenient to load native binary cross platform and cpu arch. But it's not friendly to webpack, vercel/nft and vercel/ncc because the logic is too dynamic.

  • feat: add example/compare.js.

Changed

  • fix: the default font no longer throws an error if it is not found, it changes to a warning.
  • chore: benchmark adds tests for svg icons and other improvements.
  • chore: upgrade Rust Edition to 2021.
yisi
published 1.0.4 •

Changelog

Source

[1.0.4] - 2021-10-19

Added

  • feat: background option supports alpha channel, currently only supports CSS Colors 3.

    CSS color parse depends on svgtypes.

render(svgString, {
  // Support
  background: 'rgba(77, 25, 230, .8)',
  background: 'rgb(77, 25, 230, .8)',
  background: 'rgba(77%, 25%, 230%, .8)',
  background: 'hsla(255, 80%, 50%, .8)',
  background: 'hsl(255, 80%, 50%, .8)',
  // Not support
  background: 'rgb(77 25 230 / 80%)',
  background: 'rgb(77 25 230 / .8)',
  background: 'hsl(255deg 80% 50% / 80%)',
})
yisi
published 1.0.3 •

Changelog

Source

[1.0.3] - 2021-10-15

Added

  • feat: update typescript types definition. @axelhzf
  • feat: add logLevel option, the font loading log is no longer output by default. @axelhzf

Changed

  • chore: provides a better error prompt when the options type is wrong

Fixed

  • fix: loaded font faces time changed from milliseconds to ms

Removed

  • fix: remove the path option because we never implemented it
yisi
published 1.0.2 •

Changelog

Source

[1.0.2] - 2021-10-13

Changed

  • docs: add npm packages doc and npm badges for each platform
  • chore: ci add ignored files and directories
yisi
published 1.0.1 •

Changelog

Source

[1.0.1] - 2021-10-11

npm has malfunctioned, which caused this version to fail to install.

See also: https://status.npmjs.org/incidents/wy4002vc8ryc

Changed

  • chore: remove FreeBSD support #5
  • feat: update resvg to 0.19.0
  • chore: remove lint and dependent robot
  • remove png crate

Fixed


broooooklyn
published 1.0.0 •

Changelog

Source

[1.0.0] - 2021-10-09

The first official version, use resvg 0.18.0. Mainly have the following functions:

  • Render SVG and convert to PNG.
  • Support to set PNG size according to width and height.
  • Support custom fonts and system fonts.
  • Supports setting the background color of PNG.
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