Package Exports
- svgfilter
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (svgfilter) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
node-svgfilter
A readable/writable stream that manipulates SVG files. Currently it
only supports removing elements whose id
attribute isn't on a
whitelist. This is useful as a preprocessor to inkscape
that only
supports a single --export-id=...
argument.
Example:
var SvgFilter = require('svgfilter'),
fs = require('fs');
fs.createReadStream('source.svg')
.pipe(new SvgFilter({keepId: ['foo', 'bar']}))
.pipe(fs.createWriteStream('target.svg'));
License
3-clause BSD license -- see the LICENSE
file for details.