Socket
Socket
Sign inDemoInstall

@imagescript/codecs

Package Overview
Dependencies
0
Maintainers
2
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @imagescript/codecs

fast codecs bindings for node and browsers


Version published
Weekly downloads
4
increased by300%
Maintainers
2
Install size
4.38 MB
Created
Weekly downloads
 

Readme

Source

fast codecs bindings for node and browsers

npm i @imagescript/codecs

import { png } from '@imagescript/codecs';

const rgba = new Uint32Array(256 * 256);
const image = png.encode(rgba, { width: 256, height: 256 });

supported platforms

node@10node@12node@14node@16
wasm32
macos x64
macos arm64
windows x64
linux x64 gnu
linux arm64 gnu

you can force usage of wasm by setting CODECS_FORCE_WASM env variable

for deno and browsers use @imagescript/codecs/wasm/bundle/browser.js cdn

benchmarks

TODO!

License

MIT © evan matmen

Keywords

FAQs

Last updated on 19 Sep 2021

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc