pxls-snapshot-stream

1.0.0 • Public • Published

Pxls Snapshot Stream

A simple tool to get a stream for the current canvas on pxls.space.

Installation

Install it from NPM:

npm install pxls-snapshot-stream

Usage

The module returns a PNG stream, which you can pipe to a writeable stream with fs:

const pss = require("pxls-snapshot-stream");

const fs = require("fs");
const streamOut = fs.createWriteStream("./image.png");

pss().pipe(streamOut);

Package Sidebar

Install

npm i pxls-snapshot-stream

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

5.04 kB

Total Files

4

Last publish

Collaborators

  • haykam821