canvas-to-buffer

v4.1.0
Converts a Canvas graphic into a Buffer, as fast as possible and without a copy.
canvas buffer browser atob convert

types:check

tsc --noEmit

lint

eslint --color ./src ./test

lint:fix

npm --silent run lint -- --fix

build

microbundle src/index.ts

test

cross-env NODE_OPTIONS='--import=tsx' tape test/*.ts

prettier

prettier --check ./src ./test

prettier:fix

prettier --write ./src ./test
npm i canvas-to-buffer

Metadata

  • MIT
  • >=20.12.2
  • Michael Heuberger
  • released 9/10/2024

Downloads