Name of the icon without extension .svg
Options to modify attributes or return as a Data URL
SVG as string or Data URL
import { getSymbol } from 'western-signs'
// Get the symbol with initial options
const initialSymbol = getSymbol('taurus', { stroke: 'blue', strokeWidth: 2 })
// Modify attributes using method chaining
const modifiedSymbol = initialSymbol.setStroke('green').setStrokeWidth(3)
// Log the modified SVG as a string
console.log(symbol.toString())
// Log the modified SVG as a Data URL
console.log(symbol.toDataURL())
Gets an SVG as a string or as a Data URL, with option to modify attributes.