# @gulp-sourcemaps/identity-map

> Gulp plugin for generating an identity sourcemap for a file.

Latest version **2.0.1** (published 2020-03-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install @gulp-sourcemaps/identity-map
pnpm add @gulp-sourcemaps/identity-map
yarn add @gulp-sourcemaps/identity-map
bun add @gulp-sourcemaps/identity-map
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 2.0.1 |
| Published | 2020-03-09 |
| First published | 2017-04-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 0.10 |
| Dependencies | 5 |
| Unpacked size | 5.5 KB |
| Known vulnerabilities | 0 (+5 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Gulp-sourcemaps Team |
| Maintainers | floridoo, nmccready, phated |
| Keywords | sourcemap, identity, generate, stream |

## Links

- npm: https://www.npmjs.com/package/@gulp-sourcemaps/identity-map
- Repository: https://github.com/gulp-sourcemaps/identity-map
- Homepage: https://github.com/gulp-sourcemaps/identity-map#readme
- Issues: https://github.com/gulp-sourcemaps/identity-map/issues
- npm.io page: https://npm.io/package/@gulp-sourcemaps/identity-map

## Dependencies (5)

- [acorn](https://npm.io/package/acorn.md) ^6.4.1
- [postcss](https://npm.io/package/postcss.md) ^7.0.16
- [through2](https://npm.io/package/through2.md) ^3.0.1
- [source-map](https://npm.io/package/source-map.md) ^0.6.0
- [normalize-path](https://npm.io/package/normalize-path.md) ^3.0.0

## Alternatives

- [byte-size](https://npm.io/package/byte-size.md) — 2.1M weekly downloads
- [speed-limiter](https://npm.io/package/speed-limiter.md) — 16.0K weekly downloads
- [@powersync/node](https://npm.io/package/@powersync/node.md) — 10.9K weekly downloads
- [@ledgerhq/coin-cardano](https://npm.io/package/@ledgerhq/coin-cardano.md) — 1.0K weekly downloads
- [@jayesol/jayeson.lib.streamfinder](https://npm.io/package/@jayesol/jayeson.lib.streamfinder.md) — 1.0K weekly downloads

## Recent versions

- 2.0.1 (latest) — 2020-03-09
- 2.0.0 — 2019-05-06
- 1.0.2 — 2018-06-28
- 1.0.1 — 2017-04-20
- 1.0.0 — 2017-04-10

## README

# @gulp-sourcemaps/identity-map

[![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] [![Build Status][travis-image]][travis-url] [![AppVeyor Build Status][appveyor-image]][appveyor-url] [![Coveralls Status][coveralls-image]][coveralls-url]

Gulp plugin for generating an identity sourcemap for a file.

## Example

```js
var identityMap = require('@gulp-sourcemaps/identity-map');

gulp.src(...)
  .pipe(sourcemaps.init())
  .pipe(identityMap()) // .js and .css files will get a generated sourcemap
  .pipe(sourcemaps.write())
  .pipe(gulp.dest(...))
```

## API

### `identityMap()`

Returns an `objectMode` Transform stream that processes each file with a `.sourceMap` property and buffered contents. A sourcemap is generated and attached for each `.js` and `.css` file.

## License

MIT

[downloads-image]: http://img.shields.io/npm/dm/@gulp-sourcemaps/identity-map.svg
[npm-url]: https://npmjs.org/package/@gulp-sourcemaps/identity-map
[npm-image]: http://img.shields.io/npm/v/@gulp-sourcemaps/identity-map.svg

[travis-url]: https://travis-ci.org/gulp-sourcemaps/identity-map
[travis-image]: http://img.shields.io/travis/gulp-sourcemaps/identity-map.svg?label=travis-ci

[appveyor-url]: https://ci.appveyor.com/project/phated/identity-map
[appveyor-image]: https://img.shields.io/appveyor/ci/phated/identity-map.svg?label=appveyor

[coveralls-url]: https://coveralls.io/r/gulp-sourcemaps/identity-map
[coveralls-image]: http://img.shields.io/coveralls/gulp-sourcemaps/identity-map.svg

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