question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Is it possible to promisify svgson?

See original GitHub issue

Hey, great library, I just ran into it today 😃

Is it possible to promisify svgson method when working with nodejs?

it will for sure have a good use for it

thanx for sharing 👍 👍 👍

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:14 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
elrumordelaluzcommented, Mar 12, 2018

hey @ueeieiie, first of all thanks for using svgson.

Could you please take at svgson-next which is the improved version, new API and so on.

It lacks documentation for now, but I think is easy to understand taking a look at the tests.

In case you need there is a compat mode atrribute to make a response with the same keys as svgson.

Feel free to ask anything related to the switch

1reaction
elrumordelaluzcommented, Mar 16, 2018

yup, just for info

Read more comments on GitHub >

github_iconTop Results From Across the Web

elrumordelaluz/svgson: Transform svg files to json notation
Simple tool to transform svg files and Strings into Object or JSON . Useful to manipulate SVG with js , to store in...
Read more >
svgson - npm
Start using svgson in your project by running `npm i svgson`. There are 93 other projects in the npm registry using svgson.
Read more >
How to promisify correctly JSON.parse method with bluebird
promisify is thought for asynchronous functions that take a callback function. JSON.parse is no such function, so you cannot use promisify here.
Read more >
Promisification - The Modern JavaScript Tutorial
“Promisification” is a long word for a simple transformation. It's the conversion of a function that accepts a callback into a function that ......
Read more >
Node.js 8: `util.promisify()` - 2ality
Node.js 8 has a new utility function: util.promisify(). It converts a callback-based function to a Promise-based one.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found