Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

parse-error

0.2.0 • Public • Published

parse-error Build Status

Parse error object in Node

Install

$ npm install --save parse-error

Use

var parseError = require('parse-error');
 
process.on('uncaughtException', function(e) {
  var data = parseError(e);
  // data =>
  //  filename: filename
  //  line: error line
  //  row: error row
  //  message: error message
  //  type: error type
  //  stack: error stack
});
 
nonExistentFunc();

Keywords

Install

npm i parse-error

DownloadsWeekly Downloads

2,392

Version

0.2.0

License

MIT

Last publish

Collaborators

  • avatar