You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am super curious if svgson-next could work for you, and if there are any improvement, feature that missed. Basically because asap svgson-next will be the next major version of svgson.
Here a little recap of the main differences:
The new version doesn't use a complete parser (like htmlparser2, since was using a little part of it).
It also dropped svgo because from v1.0.0 supports Promises and it's easy to handle both together.
svgson-next changes a little the API, removing some options, but adding transformNode that lets you apply transformations on each node processed. Here is an example using it to assign an unique id for Icons in SVG Sprite.
Since also changes the results keys, it is a compat option to let you switch without issues.
@nanohop congrats for the awesome library!
I am super curious if svgson-next could work for you, and if there are any improvement, feature that missed. Basically because asap
svgson-next
will be the next major version of svgson.Here a little recap of the main differences:
htmlparser2
, since was using a little part of it).svgo
because fromv1.0.0
supportsPromises
and it's easy to handle both together.svgson-next
changes a little the API, removing some options, but adding transformNode that lets you apply transformations on eachnode
processed. Here is an example using it to assign an uniqueid
for Icons in SVG Sprite.keys
, it is acompat
option to let you switch without issues.The difference in terms of bundle size is big:
Feel free to let me know if there are issues, features, etc.
The text was updated successfully, but these errors were encountered: