# @types/gulp-insert

> TypeScript definitions for gulp-insert

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

## Install

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

## 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.5.13 |
| Published | 2023-11-07 |
| First published | 2016-08-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 5.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51440 |
| Maintainers | types |

## Links

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

## Dependencies (2)

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

## Recent versions

- 0.5.13 (latest) — 2023-11-07
- 0.5.10 (ts4.3) — 2023-08-25
- 0.5.8 (ts3.0) — 2020-05-15
- 0.5.7 (ts2.0) — 2017-11-08
- 0.5.12 — 2023-10-18
- 0.5.11 — 2023-09-20
- 0.5.9 — 2023-05-10
- 0.5.6 — 2017-03-16
- 0.5.5 — 2016-11-21
- 0.5.4 — 2016-09-19
- 0.5.3 — 2016-08-25
- 0.5.2 — 2016-08-19
- 0.5.1 — 2016-08-02

## README

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

declare module "gulp-insert" {
    import File = require("vinyl");

    interface Transformer {
        (contents: string, file: File): string;
    }

    namespace Insert {
        /**
         * Prepends a string onto the contents
         * @param {string} content
         * @returns {NodeJS.ReadWriteStream}
         */
        function prepend(content: string): NodeJS.ReadWriteStream;

        /**
         * Appends a string onto the contents
         * @param {string} content
         * @returns {NodeJS.ReadWriteStream}
         */
        function append(content: string): NodeJS.ReadWriteStream;

        /**
         * Wraps the contents with two strings
         * @param {string} prepend
         * @param {string} append
         * @returns {NodeJS.ReadWriteStream}
         */
        function wrap(prepend: string, append: string): NodeJS.ReadWriteStream;

        /**
         * Calls a function with the contents of the file
         * @param {Transformer} transformer
         * @returns {NodeJS.ReadWriteStream}
         */
        function transform(transformer: Transformer): NodeJS.ReadWriteStream;
    }

    namespace Insert {}
    export = Insert;
}

````

### 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 [Shant Marouti](https://github.com/shantmarouti).

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