An open API service indexing awesome lists of open source software.

https://github.com/stefanbuck/gulp-appendit

Append text to a specific line
https://github.com/stefanbuck/gulp-appendit

Last synced: 3 months ago
JSON representation

Append text to a specific line

Awesome Lists containing this project

README

        

#gulp-appendit [![Build Status](https://travis-ci.org/stefanbuck/gulp-appendit.png?branch=master)](https://travis-ci.org/stefanbuck/gulp-appendit) [![Dependency Status](https://david-dm.org/stefanbuck/gulp-appendit.png?theme=shields.io)](https://david-dm.org/stefanbuck/gulp-appendit)

> [appendit](https://github.com/stefanbuck/appendit) plugin for gulp

Appendit allows you easily to add text at a specific line. It will works with any plain text format like ```.txt``` ```.md``` ```.js``` ...

## Install

```bash
npm install gulp-appendit
```

## Usage

```js
var gulp = require('gulp');
var appendit = require('gulp-appendit');

gulp.task('default', function() {
gulp.src('src/index.html')
.pipe(appendit({
anchor: '',
content: [
''
]
}))
.pipe(gulp.dest('dist'))
});
```

## API

### appendit(options)

#### options.anchor

*Required*
Type: `String`

#### options.content

*Required*
Type: `Array`

## Example

Below is example how to use gulp-appendit:

The ```index.html``` looks like that:

```html






```
Call the ```appendit``` function with the following parameters:

```js
var gulp = require('gulp');
var appendit = require('gulp-appendit');

gulp.task('default', function() {
gulp.src('index.html')
.pipe(appendit({
anchor: '',
content: [
''
]
}))
.pipe(gulp.dest('dist'))
});
```

Output:

```html







```

## License

[BSD license](http://opensource.org/licenses/bsd-license.php)