Nested Parenthetical Madness
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

generate-source-map

0.0.5 • Public • Published

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());

install

npm i generate-source-map

Downloadsweekly downloads

28

version

0.0.5

license

MIT

repository

githubgithub

last publish

collaborators

  • avatar