enb-source-map

1.12.1 • Public • Published

enb-source-map

NPM version Build Status Dependency Status

Помошник для работы с картами кода.

Пример

var fs = require('fs'),
    File = require('enb-source-map/lib/file'),
    file = new File('output.js', { sourceMap: { from: 'bundle.js', prev: { /*
    source map object */ } });
 
file
    .write('line')
    .writeLine('-1')
    .writeFileContent('input-1.js', fs.readFileSync('input-1.js', 'utf-8'))
    .writeFileFragment('input-2.js', fs.readFileSync('input-2.js', 'utf-8').split('\n').pop(), 1, 0)
    .writeLine('line 2');
 
file.getContent();
// line-1
// input-1-contents
// input-2-fragment
// line 2
file.getSourceMap();
// {
//   version: 3,
//   sources: [ 'input-1.js', 'input-2.js' ],
//   names: [],
//   mappings: ';AAAA;ACAA',
//   file: 'output.js'
// }

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.12.166latest

Version History

VersionDownloads (Last 7 Days)Published
1.12.166
1.12.045
1.11.01
1.10.03
1.9.045
1.8.05
1.7.21
1.7.10
1.7.00
1.6.01
1.5.01
1.4.11
1.4.01
1.3.10
1.3.01
1.2.21
1.2.12
1.2.00
1.1.00
1.0.41
1.0.35
1.0.27
1.0.10
1.0.00

Package Sidebar

Install

npm i enb-source-map

Weekly Downloads

71

Version

1.12.1

License

MIT

Unpacked Size

45.4 kB

Total Files

16

Last publish

Collaborators

  • miripiruni
  • mdevils
  • tadatuta
  • blond