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 May 2, 2024 via pnpm

convert-source-map 2.0.0

Converts a source-map from/to different formats and allows adding/changing properties.
Package summary
Share
0
issues
1
license
1
MIT
Package created
13 Mar 2013
Version published
17 Oct 2022
Maintainers
2
Total deps
1
Direct deps
0
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
1 Packages, Including:
convert-source-map@2.0.0
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

0
All Dependencies CSV
β“˜ This is a list of convert-source-map 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities

Visualizations

Frequently Asked Questions

What does convert-source-map do?

Convert-source-map is a potent JavaScript tool that serves as a converter for source-maps through various formats and allows alterations and additions to properties. It is particularly useful for developers who work extensively with source maps in their projects and require a consistent way to convert between different source-map formats. Its functionality extends beyond simple conversion, as it allows developers to add or change properties directly. This package can make the handling of source maps significantly easier and more efficient.

How do you use convert-source-map?

The convert-source-map package is implemented in JavaScript, and is utilized by importing it and making function calls with necessary parameters. Here is a practical usage example on how you can convert a source-map from one format to another, and how you can modify its properties:

var convert = require('convert-source-map');

// Convert a source-map from one format to another.
var json = convert
  .fromComment('//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnVpbGQvZm9vLm1pbi5qcyIsInNvdXJjZXMiOlsic3JjL2Zvby5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSIsInNvdXJjZVJvb3QiOiIvIn0=')
  .toJSON();

// Modify properties of a source-map.
var modified = convert
  .fromComment('//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnVpbGQvZm9vLm1pbi5qcyIsInNvdXJjZXMiOlsic3JjL2Zvby5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSIsInNvdXJjZVJvb3QiOiIvIn0=')
  .setProperty('sources', [ 'SRC/FOO.JS' ])
  .toJSON();

console.log(json);
console.log(modified);

Where are the convert-source-map docs?

The complete documentation of convert-source-map can be accessed directly from the package's GitHub repository. The documentation provides a comprehensive understanding of how convert-source-map can be used, it covers information about all the different functions and options offered by the package. To better grasp the functionality offered by convert-source-map, it is highly recommended to read the full API documentation.