pixel-art-2-svg

0.1.5 • Public • Published

pixel-art-2-svg

Install

npm i pixel-art-2-svg

How to use

const pixelArtToSvg = require('pixel-art-2-svg');
const fileSystem = require('fs');
 
pixelArtToSvg(__dirname + '/pixel-art.png')
    .then(svgString => {
        fileSystem.writeFile(
            __dirname + '/pixel-art.svg', 
            svgString, 
            'utf-8', 
            () => console.log(__dirname + '/pixel-art.svg - done!')
        );
    });

Package Sidebar

Install

npm i pixel-art-2-svg

Weekly Downloads

4

Version

0.1.5

License

MIT

Unpacked Size

37.2 kB

Total Files

16

Last publish

Collaborators

  • webbestmaster