🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

embed-source-map-src

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

embed-source-map-src

Convert sourcemaps with external references to inlineable sourcemap

latest
Source
npmnpm
Version
0.0.1
Version published
Maintainers
1
Created
Source

embed-source-map

Convert sourcemaps with external references to inlineable sourcemap

Install

$ npm install -g embed-source-map-src

command line

$ embed-sm src1.js src2.js src3.js

command line example:

$ embed-sm spine/lib/list.js

converts source-map in list.js from


//... end of file:
/*
//@ sourceMappingURL=list.map
*/

to


//...
/*
//@ sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGlzdC5qcyIsInNvdX.......
*/

embeeding spine/lib/list.coffee source and encoding to mime/base64 url

API:

var embed = require('embed-source-map-src');
var src = require('fs').readFileSync('../spine/lib/list.js');
console.log(embed(src));

Keywords

sourcemaps

FAQs

Package last updated on 02 Sep 2013

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