New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

generate-source-map

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

generate-source-map

Generates an identity source-map from a javascript file

latest
Source
npmnpm
Version
0.0.5
Version published
Weekly downloads
1.4K
-7.01%
Maintainers
1
Weekly downloads
 
Created
Source

generate-source-map

Generates an identity source-map from a javascript file

Can be used with combine-source-map to generate source-maps with correct line and column information before bundling.

Installation

$ npm install generate-source-map

Usage

var generate = require('generate-source-map');
var fs = require('fs');

var file = {
  source: fs.readFileSync('test.js'),
  sourceFile: 'test.js'
};

var map = generate(file);

console.log(map.toString());

Keywords

source

FAQs

Package last updated on 06 Jul 2014

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