Skip to content

Latest commit

 

History

History
33 lines (20 loc) · 450 Bytes

README.md

File metadata and controls

33 lines (20 loc) · 450 Bytes

clean-sketch

Cleanup Sketch SVG files

Install

$ npm install --save-dev clean-sketch

Usage

var cleanSketch = require('clean-sketch');
var fs = require('fs');

// Cleanup a Sketch exported SVG
var svg = cleanSketch(fs.readFileSync('icon.svg', 'utf-8'));

API

cleanSketch(doc)

Removes Sketch namespaces and metadata.

doc

Type: String

License

MIT © Overblog