# gulp-update-humanstxt-date

Update the `last updated` date in a `humans.txt` file.

## Install

With npm (`npm install --save-dev gulp-update-humanstxt-date`) or with Yarn (`yarn add --dev gulp-update-humanstxt-date`).


## Usage

```js
const gulp = require('gulp');
const updateHumanstxtDate = require('gulp-update-humanstxt-date');

gulp.task('default', () => {
	gulp.src('src/humans.txt')
		.pipe(updateHumanstxtDate())
		.pipe(gulp.dest('dist'))
);
```

## API

### updateHumanstxtDate([options])

#### options

##### log

Type: `boolean`<br>
Default: `false`

Log out the previous date and the current date as it will be replace in `humans.txt`. Useful for debugging.


## License

MIT © Paul Esch-Laurent

# gulp-update-humanstxt-date

Update the `last updated` date in a `humans.txt` file.

## Install

With npm (`npm install --save-dev gulp-update-humanstxt-date`) or with Yarn (`yarn add --dev gulp-update-humanstxt-date`).


## Usage

```js
const gulp = require('gulp');
const updateHumanstxtDate = require('gulp-update-humanstxt-date');

gulp.task('default', () => {
  gulp.src('src/humans.txt')
    .pipe(updateHumanstxtDate())
    .pipe(gulp.dest('dist'))
);
```

## Caveats

As per the [humans.txt standard](http://humanstxt.org/Standard.html), the year needs to be in the format YYYY/MM/DD.

## API

### updateHumanstxtDate([options])

#### options

##### log

Type: `boolean`<br>
Default: `false`

Log out the previous date and the current date as it will be replaced in `humans.txt`. Useful for debugging.


## License

MIT © Paul Esch-Laurent

Document the required date format (YYYY/MM/DD)
Document the required date format (YYYY/MM/DD)
