julien-f-source-map-support

0.1.0 • Public • Published

julien-f-source-map-support Build Status

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

Readme

Keywords

none

Package Sidebar

Install

npm i julien-f-source-map-support

Weekly Downloads

1

Version

0.1.0

License

ISC

Last publish

Collaborators

  • julien-f