Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

svgson-next #39

Open
elrumordelaluz opened this issue Aug 8, 2018 · 0 comments
Open

svgson-next #39

elrumordelaluz opened this issue Aug 8, 2018 · 0 comments

Comments

@elrumordelaluz
Copy link

@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:

  • 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.

The difference in terms of bundle size is big:

Feel free to let me know if there are issues, features, etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant