0.2.2 • Published 4 years ago
@svg-component-generator/core v0.2.2
@svg-component-generator/core
The core of @svg-component-generator/*
, which can be used in nodejs and browser.
Install
npm i @svg-component-generator/core -D
Usage
import { generateSvgComponent } from '@svg-component-generator/core';
const {
jsComponentCode,
jsxComponentCode,
interfaceCode
} = generateSvgComponent(`
<svg class="icon" viewBox="0 0 1024 1024" >
<path fill="#333333" d="M864 120a64 64 0 0 1 64 64v656a64 64 0 0 1-64 64H160a64 64 0 0 1-64-64V184a64 64 0 0 1 64-64h704z m-8 72H168v640h688V192z" />
<path fill="#333333" d="M112 416h808v72H112z" />
<path fill="#333333" d="M336 440h72v456h-72zM624 440h72v456h-72z" />
<path fill="#333333" d="M112 632h808v72H112z" />
</svg>
`, {});
0.1.0
4 years ago
0.2.1
4 years ago
0.1.5-alpha.0
4 years ago
0.2.2
4 years ago
0.1.4-alpha.0
4 years ago
0.1.3-alpha.0
4 years ago
0.1.1-alpha.0
4 years ago