Skip to content

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

Notifications You must be signed in to change notification settings

haykam821/Pxls-Snapshot-Stream

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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);

About

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

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published