Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on Mar 9, 2024 via pnpm

source-map-support 0.5.21

Fixes stack traces for files with source maps
Package summary
Share
0
issues
2
licenses
2
MIT
1
BSD-3-Clause
Package created
18 Jan 2013
Version published
19 Nov 2021
Maintainers
3
Total deps
3
Direct deps
2
License
MIT

Issues

0
This package has no issues

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
2 Packages, Including:
buffer-from@1.1.2
source-map-support@0.5.21

BSD 3-Clause "New" or "Revised" License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
place-warranty
Cannot
use-trademark
hold-liable
Must
include-copyright
include-license
1 Packages, Including:
source-map@0.6.1
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

2
All Dependencies CSV
β“˜ This is a list of source-map-support 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
buffer-from1.1.22.26 kBMIT
prod
source-map0.6.1194.96 kBBSD-3-Clause
prod

Visualizations

Frequently Asked Questions

What does source-map-support do?

Source-map-support is a handy Node.js module that enhances stack trace readability for JavaScript products that are compiled from languages like TypeScript, CoffeeScript, or other languages that get compiled into JavaScript. The primary role of this module is to map the stack trace errors back to the original source code, effectively utilizing the source maps. The transformation in turn replaces the paths and line numbers of the source-mapped files with the original paths and line numbers, making the stack trace more understandable and indicative of where exactly issues exist.

How do you use source-map-support?

To use source-map-support in your Node.js project, you should first install it using the npm package manager. Open your terminal or command line and enter the command npm install source-map-support.

After successfully installing the package, you can use it programmatically or via the command-line interface (CLI).

For CLI usage:

Run your JavaScript file with Node and register the source-map-support module by appending -r source-map-support/register For instance: node -r source-map-support/register compiled.js

In case you want to use it programmatically, you need to include the following at the top of your compiled file:

require('source-map-support').install();

Alternatively, to directly install source-map support, import the register module as follows:

import 'source-map-support/register'

// Instead of:
import sourceMapSupport from 'source-map-support'
sourceMapSupport.install()

Where are the source-map-support docs?

The comprehensive documentation for the source-map-support package is situated within the README.md file within the root folder of its GitHub repository. The documentation can be visited at the following URL: https://github.com/evanw/node-source-map-support. This contains exhaustive details on installation, usage, options, and demonstrations for a range of usage scenarios. It's an indispensable resource for understanding the package in more depth before integrating it into your project.