Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pinjasaur/gulp-update-humanstxt-date
Update the `last updated` date in a humans.txt file.
https://github.com/pinjasaur/gulp-update-humanstxt-date
gulp gulp-plugin humanstxt
Last synced: 18 days ago
JSON representation
Update the `last updated` date in a humans.txt file.
- Host: GitHub
- URL: https://github.com/pinjasaur/gulp-update-humanstxt-date
- Owner: Pinjasaur
- License: mit
- Created: 2017-01-26T06:05:45.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2023-04-18T04:02:01.000Z (almost 2 years ago)
- Last Synced: 2025-01-23T15:41:29.054Z (22 days ago)
- Topics: gulp, gulp-plugin, humanstxt
- Language: JavaScript
- Size: 30.3 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gulp-update-humanstxt-date [![Travis](https://img.shields.io/travis/Pinjasaur/gulp-update-humanstxt-date.svg)](https://github.com/Pinjasaur/gulp-update-humanstxt-date)
> Update the `last update` date in a `humans.txt` file.
## Install
With npm
```sh
npm install --save-dev gulp-update-humanstxt-date
```or with Yarn
```sh
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("./humans.txt")
.pipe(updateHumanstxtDate())
.pipe(gulp.dest("dist"));
});
```## Caveats
As per the [humans.txt standard](http://humanstxt.org/Standard.html), the year is expected in the _YYYY/MM/DD_ format.
In addition, the general format is expected to be as follows: _Last updated: YYYY/MM/DD_. The tense of "update" can be present (update) or past (updated). Further, the space between the colon (:) and the date is optional.
If you're having trouble, enable logging: `updateHumanstxtDate({ log: true })`. If the issue persists please [let me know](https://github.com/Pinjasaur/gulp-update-humanstxt-date/issues).
## API
### updateHumanstxtDate([options])
#### options
##### log
Type: `Boolean`
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