julien-f-source-map-support
v0.1.0
Published
Source maps for Node (using stack-chain)
Downloads
10
Readme
julien-f-source-map-support
Source maps for Node (using stack-chain)
Differences with source-map-support:
- support only Node (no browsers)
- simpler:
- do not handle uncaught exceptions
- cannot specify a custom resolution
- based on stack-chain
Note: the name of this package is temporary, maybe it will be renamed to something better or it will be integrated with source-map-support.
Install
Installation of the npm package:
> npm install --save julien-f-source-map-support
Usage
import 'julien-f-source-map-support/register'
The perfect setup:
Error.stackTraceLimit = 100
// Async traces.
//
// Does not work with Node < 4.
try { require('trace') } catch (_) {}
// Hide core modules from traces.
require('clarify')
// Support source maps.
require('julien-f-source-map-support')
Development
# Install dependencies
> yarn
# Run the tests
> yarn test
Contributions
Contributions are very welcomed, either on the documentation or on the code.
You may:
- report any issue you've encountered;
- fork and create a pull request.
License
ISC © Julien Fontanet