Skip to content

overblog/clean-sketch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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