Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

merge-source-map

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

merge-source-map

Merge old source map and new source map in multi-transform flow

  • 1.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2.9M
decreased by-9.25%
Maintainers
1
Weekly downloads
 
Created

What is merge-source-map?

The merge-source-map npm package is a utility that allows developers to merge multiple source maps. This is particularly useful in development environments where JavaScript files are transformed through processes like minification or transpilation, and maintaining accurate source maps is crucial for debugging.

What are merge-source-map's main functionalities?

Merge Source Maps

This feature allows the merging of two source maps into one. It is useful when you have transformations applied in stages and need to track the original source accurately across these transformations.

const mergeSourceMap = require('merge-source-map');
const originalMap = { version: 3, sources: ['foo.js'], names: [], mappings: 'AAAA' };
const additionalMap = { version: 3, sources: ['foo.js'], names: [], mappings: 'CAAC' };
const mergedMap = mergeSourceMap(originalMap, additionalMap);
console.log(mergedMap);

Other packages similar to merge-source-map

Keywords

FAQs

Package last updated on 25 Dec 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc