https://github.com/lokesh-coder/gulp-faker
Fake random data injection
https://github.com/lokesh-coder/gulp-faker
Last synced: about 1 year ago
JSON representation
Fake random data injection
- Host: GitHub
- URL: https://github.com/lokesh-coder/gulp-faker
- Owner: lokesh-coder
- License: mit
- Created: 2016-02-25T10:58:33.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2018-12-25T18:24:07.000Z (over 7 years ago)
- Last Synced: 2024-11-07T14:52:45.934Z (over 1 year ago)
- Language: JavaScript
- Size: 9.77 KB
- Stars: 2
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# gulp-faker [](https://travis-ci.org/lokesh-coder/gulp-faker)
[](https://gitter.im/lokesh-coder/gulp-faker?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
> Fake random data injection
## Install
```
$ npm install --save gulp-faker
```
## Usage
```js
var gulp = require('gulp');
var faker = require('gulp-faker');
gulp.task('default', function () {
return gulp.src('src/hello.html')
.pipe(faker())
.pipe(gulp.dest('dist'));
});
```
## In html
```html
Hello !
Details
Title:
Company:
Phone:
Portfolio:
Avatar:
DOB:
Address:
Manager:
```
## will return
```html
Hello Luther!
Eius deleniti voluptas iure necessitatibus non minima ut.
Nihil aut repellendus voluptates veritatis minus.
At culpa distinctio.
Details
Title: Forward Marketing Strategist
Company: Ledner, Erdman and Jaskolski
Phone: 749-134-2560
Portfolio: http://orin.com
Avatar: https://s3.amazonaws.com/uifaces/faces/twitter/diansigitp/128.jpg
DOB: Mon Nov 16 2015 22:49:32 GMT+0530 (India Standard Time)
Address: 171 Nicolas Spurs
Manager: Kathlyn
```
> Random data is produced even the same tag is repeated. for more details, take a look at [faker](https://www.npmjs.com/package/faker) library.
### list of all tags
```html
```
## License
MIT © [lokesh-coder](https://github.com/lokesh-coder)