# enb-source-map

> enb-source-map ==============

Latest version **1.12.1** (published 2019-09-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install enb-source-map
pnpm add enb-source-map
yarn add enb-source-map
bun add enb-source-map
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.12.1 |
| Published | 2019-09-26 |
| First published | 2014-05-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 44.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 7 |
| Author | Marat Dulin |
| Maintainers | blond, mdevils, miripiruni |

## Links

- npm: https://www.npmjs.com/package/enb-source-map
- Repository: https://github.com/enb/enb-source-map
- Issues: https://github.com/enb/enb-source-map/issues
- npm.io page: https://npm.io/package/enb-source-map

## Dependencies (3)

- [atob](https://npm.io/package/atob.md) 2.1.2
- [btoa](https://npm.io/package/btoa.md) 1.2.1
- [source-map](https://npm.io/package/source-map.md) 0.5.6

## Recent versions

- 1.12.1 (latest) — 2019-09-26
- 1.12.0 — 2017-11-28
- 1.11.0 — 2017-07-18
- 1.10.0 — 2017-04-10
- 1.9.0 — 2015-12-20
- 1.8.0 — 2015-09-08
- 1.7.2 — 2015-08-20
- 1.7.1 — 2015-08-17
- 1.7.0 — 2015-08-14
- 1.6.0 — 2015-08-05
- 1.5.0 — 2014-12-08
- 1.4.1 — 2014-10-30
- 1.4.0 — 2014-10-30
- 1.3.1 — 2014-07-10
- 1.3.0 — 2014-05-25
- … 9 more at https://npm.io/package/enb-source-map/versions

## README

enb-source-map
==============

[![NPM version](https://img.shields.io/npm/v/enb-source-map.svg?style=flat)](https://www.npmjs.org/package/enb-source-map) [![Build Status](https://img.shields.io/travis/enb/enb-source-map/master.svg?style=flat&label=tests)](https://travis-ci.org/enb/enb-source-map)
[![Dependency Status](https://img.shields.io/david/enb/enb-source-map.svg?style=flat)](https://david-dm.org/enb/enb-source-map)

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

Пример
------

```js
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'
// }
```

---
_Source: https://npm.io/package/enb-source-map · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
