Is it possible to promisify svgson?
See original GitHub issueHey, 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:
- Created 6 years ago
- Comments:14 (7 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
hey @ueeieiie, first of all thanks for using
svgson
.Could you please take at
svgson-next
which is the improved version, newAPI
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 assvgson
.Feel free to ask anything related to the switch
yup, just for info