# generate-source-map

> Generates an identity source-map from a javascript file

Latest version **0.0.5** (published 2014-07-06) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.5 |
| Published | 2014-07-06 |
| First published | 2014-07-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | thibauts |
| Maintainers | thibauts |
| Keywords | source, map, sourcemap, generate |

## Links

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

## Dependencies (2)

- [esprima](https://npm.io/package/esprima.md) ~1.2.2
- [source-map](https://npm.io/package/source-map.md) ~0.1.34

## Alternatives

- [jsforce](https://npm.io/package/jsforce.md) — 851.2K weekly downloads
- [react-native-qrcode-svg](https://npm.io/package/react-native-qrcode-svg.md) — 693.5K weekly downloads
- [@salesforce/plugin-data](https://npm.io/package/@salesforce/plugin-data.md) — 394.9K weekly downloads
- [@backstage/plugin-search-common](https://npm.io/package/@backstage/plugin-search-common.md) — 308.5K weekly downloads
- [@chain-registry/types](https://npm.io/package/@chain-registry/types.md) — 38.4K weekly downloads

## Recent versions

- 0.0.5 (latest) — 2014-07-06
- 0.0.4 — 2014-07-06
- 0.0.3 — 2014-07-06
- 0.0.2 — 2014-07-06
- 0.0.1 — 2014-07-06

## README

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
------------

``` bash
$ npm install generate-source-map
```

Usage
-----

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

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