Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/webbestmaster/pixel-art-2-svg

pixel art to svg
https://github.com/webbestmaster/pixel-art-2-svg

Last synced: 28 days ago
JSON representation

pixel art to svg

Awesome Lists containing this project

README

        

## pixel-art-2-svg

### Install

```
npm i pixel-art-2-svg
```

### How to use

```javascript
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!')
);
});
```