<commit_before># Source Map Support

This module provides source map support for stack traces in node via the [V8 stack trace API](http://code.google.com/p/v8/wiki/JavaScriptStackTraceApi). It uses the [source-map](https://github.com/mozilla/source-map) module to replace the paths and line numbers of source-mapped files with their original paths and line numbers. The output mimics node's stack trace format with the goal of making every compile-to-JS language more of a first-class citizen. Source maps are completely general (not specific to any one language) so you can use source maps with multiple compile-to-JS languages in the same node process.

### Installation

    npm install source-map-support

This module takes effect globally and should be initialized by inserting `require('source-map-support').install()` at the top of your code.

### Usage

To use a valid source map (generated using something like [source-map-index-generator][https://github.com/twolfson/source-map-index-generator]), 
the compiled code should contain the following two extra lines:

    //@sourceMappingURL=path/to/sourceMapFile.json
    require('source-map-support').install();
    <commit_msg>fixing link<commit_after># Source Map Support

This module provides source map support for stack traces in node via the [V8 stack trace API](http://code.google.com/p/v8/wiki/JavaScriptStackTraceApi). It uses the [source-map](https://github.com/mozilla/source-map) module to replace the paths and line numbers of source-mapped files with their original paths and line numbers. The output mimics node's stack trace format with the goal of making every compile-to-JS language more of a first-class citizen. Source maps are completely general (not specific to any one language) so you can use source maps with multiple compile-to-JS languages in the same node process.

### Installation

    npm install source-map-support

This module takes effect globally and should be initialized by inserting `require('source-map-support').install()` at the top of your code.

### Usage

To use a valid source map (generated using something like [source-map-index-generator][sourceMapGenerator]), the compiled code should contain the following two extra lines:

[sourceMapGenerator]:[https://github.com/twolfson/source-map-index-generator]

    //@sourceMappingURL=path/to/sourceMapFile.json
    require('source-map-support').install();
    
{'fraction_non_alphanumeric': 0.08423236514522822, 'fraction_numerical': 0.0016597510373443983, 'mean_word_length': 4.672941176470588, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7330153', 'n_tokens_mistral': 613, 'n_tokens_neox': 590, 'n_words': 272}