# @types/gulp-sourcemaps

> TypeScript definitions for gulp-sourcemaps

Latest version **0.0.38** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

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

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

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

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 0.0.38 |
| Published | 2023-11-07 |
| First published | 2016-05-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 5.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51439 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/gulp-sourcemaps
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/gulp-sourcemaps
- npm.io page: https://npm.io/package/@types/gulp-sourcemaps

## Dependencies (2)

- [@types/node](https://npm.io/package/@types/node.md) *
- [@types/vinyl](https://npm.io/package/@types/vinyl.md) *

## Recent versions

- 0.0.38 (latest) — 2023-11-07
- 0.0.36 (ts4.3) — 2023-05-10
- 0.0.35 (ts3.6) — 2021-07-08
- 0.0.34 (ts3.3) — 2020-12-22
- 0.0.32 (ts2.0) — 2017-11-09
- 0.0.37 — 2023-10-18
- 0.0.33 — 2020-12-01
- 0.0.31 — 2017-06-20
- 0.0.30 — 2017-03-16
- 0.0.29 — 2016-09-19
- 0.0.28 — 2016-07-14
- 0.0.27-alpha — 2016-07-08
- 0.0.26-alpha — 2016-07-04
- 0.0.25-alpha — 2016-07-02
- 0.0.24-alpha — 2016-07-01
- … 5 more at https://npm.io/package/@types/gulp-sourcemaps/versions

## README

# Installation
> `npm install --save @types/gulp-sourcemaps`

# Summary
This package contains type definitions for gulp-sourcemaps (https://github.com/gulp-sourcemaps/gulp-sourcemaps).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/gulp-sourcemaps.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/gulp-sourcemaps/index.d.ts)
````ts
/// <reference types="node"/>

import File = require("vinyl");

interface InitOptions {
    loadMaps?: boolean | undefined;
    debug?: boolean | undefined;
}

interface WriteMapper {
    (file: string): string;
}

interface SourceMapMapper {
    (sourcePath: string, file: File): string;
}

interface SourceUrlMapper {
    (file: File): string;
}

interface MapFilenameMapper {
    (mapFilePath: string): string;
}

interface CloneOptions {
    contents?: boolean | undefined;
    deep?: boolean | undefined;
}

interface WriteOptions {
    addComment?: boolean | undefined;
    includeContent?: boolean | undefined;
    sourceRoot?: string | WriteMapper | undefined;
    sourceMappingURLPrefix?: string | WriteMapper | undefined;
    sourceMappingURL?: SourceUrlMapper | undefined;
    destPath?: string | undefined;
    mapFile?: MapFilenameMapper | undefined;
    charset?: BufferEncoding | undefined;
    clone?: boolean | CloneOptions | undefined;
}

export declare function init(opts?: InitOptions): NodeJS.ReadWriteStream;
export declare function mapSources(mapper?: SourceMapMapper): NodeJS.ReadWriteStream;
export declare function write(path?: string, opts?: WriteOptions): NodeJS.ReadWriteStream;
export declare function write(opts?: WriteOptions): NodeJS.ReadWriteStream;

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 03:09:37 GMT
 * Dependencies: [@types/node](https://npmjs.com/package/@types/node), [@types/vinyl](https://npmjs.com/package/@types/vinyl)

# Credits
These definitions were written by [Phips Peter](https://github.com/pspeter3), and [Concision](https://github.com/concision).

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