julien-f / js-source-map-support-2

Source maps for Node (using stack-chain)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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
> npm

# Run the tests
> npm 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

About

Source maps for Node (using stack-chain)


Languages

Language:JavaScript 100.0%