Easily scale pixel art with nearest neighbour interpolation.
npm install scale-pixel-artjs
// get the image at input.png, scale it to be 20x bigger, and store the result in output.png
const scalePixelArt = require("scale-pixel-art")
const inputBuffer = fs.readFileSync("/input.png")
const outputBuffer = scalePixelArt(inputBuffer, 20)
fs.writeFileSync("/ouput.png", outputBuffer)
`
$3
scalePixelArt(input, scale)
#### input
Type: buffer
The image to be scaled.
#### scale
Type: number`