svg-icon-toolkit-set
v0.0.49
Published
A toolkit for manipulating and combining SVG icons.
Downloads
4
Maintainers
Readme
SVG Icon Toolkit
SVG Icon Toolkit allows for easy manipulation and combination of SVG icons in your projects. With it, you can load, edit, combine SVG files, and even export them as PDFs or save them directly to the file system.
Installation
To install SVG Icon Toolkit, run the following command in your project directory:
npm install svg-icon-toolkit
Usage
Loading an SVG
To load an SVG icon:
const { loadSVG } = require('svg-icon-toolkit');
const myIcon = loadSVG('path/to/your/icon.svg');
Combining SVGs
To combine multiple SVG icons into one:
const { combineSVGs } = require('svg-icon-toolkit');
const combinedIcon = combineSVGs(['path/to/icon1.svg', 'path/to/icon2.svg']);
Editing SVGs
To apply simple edits to an SVG icon (e.g., change color):
const { editSVG } = require('svg-icon-toolkit');
const editedIcon = editSVG('path/to/your/icon.svg', { color: '#FF0000' });
Exporting SVGs
To export an SVG as a PDF:
const { exportAsPDF } = require('svg-icon-toolkit');
exportAsPDF('path/to/your/icon.svg', 'path/to/output.pdf');
Contributing
We welcome contributions to SVG Icon Toolkit! Please open an issue or submit a pull request for any improvements you wish to make.
License
SVG Icon Toolkit is released under the MIT License. See the LICENSE file for more details.