0.0.17 • Published 8 years ago

mini-rest-uncaught v0.0.17

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

npm version Build Status Coverage Status Code Climate Inch CI

Dependency Status devDependency Status

mini-rest-uncaught

Simple uncaught exception handler for mini-rest project.

Logs all uncaught exceptions except SyntaxError (to allow filename, lineno, colno to be shown) and workaround for 'Directory not found' in require-config-all

If you have different needs regarding the functionality, please add a feature request.

Installation

npm install --save mini-rest-uncaught

Usage

var logger = require('mini-rest-logger')();
var uncaught = require('../')({}, logger);

throw new Error('this is uncaught exception');
$ node examples/index.js 
2016-03-07T23:30:58.211Z - error: [index] uncaughtException: [Error: this is uncaught exception] Error: this is uncaught exception
    at Object.<anonymous> (/home/alykoshin/sync/al-projects/dev/npm/mini-rest-uncaught/examples/index.js:10:7)
    at Module._compile (module.js:413:34)
    at Object.Module._extensions..js (module.js:422:10)
    at Module.load (module.js:357:32)
    at Function.Module._load (module.js:314:12)
    at Function.Module.runMain (module.js:447:10)
    at startup (node.js:139:18)
    at node.js:999:3

Credits

Alexander

Links to package pages:

github.com   npmjs.com   travis-ci.org   coveralls.io   inch-ci.org

License

MIT

0.0.17

8 years ago

0.0.16

9 years ago

0.0.15

9 years ago

0.0.14

9 years ago

0.0.13

9 years ago

0.0.12

9 years ago

0.0.11

10 years ago

0.0.10

10 years ago

0.0.9

10 years ago

0.0.8

10 years ago

0.0.7

10 years ago

0.0.6

10 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago