@dicebear/avatars
Version:
An avatar library for designers and developers.
16 lines (15 loc) • 397 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const svgson_1 = require("svgson");
/**
* @deprecated
*/
class Parser {
static parse(svg) {
return typeof svg === 'string' ? (0, svgson_1.parseSync)(svg) : svg;
}
static stringify(svg) {
return typeof svg === 'string' ? svg : (0, svgson_1.stringify)(svg);
}
}
exports.default = Parser;