Wednesday 29 November 2017

Exporting node.js error codes as constants for node > 8.0

Node.js 8.0+ added error codes instead of just message, but it's still strings!!I created a tool that extracts the error codes from node.js source via Babylon parser and outputs them into ES6 modules.But I'm not sure of the API, should I export them as constants, or an object.Check the project out and PRs welcome.http://ift.tt/2ijuekC

Submitted November 29, 2017 at 11:43AM by cswl1337

No comments:

Post a Comment