Skip to content

watilde/parse-error

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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();