npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

gulp-faker

v1.0.1

Published

Fake random data injection

Downloads

43

Readme

gulp-faker Build Status

Fake random data injection

Install

$ npm install --save gulp-faker

Usage

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


<h1>Hello <faker-name-firstName/>!</h1>
<p>
    <faker-lorem-sentences/>
</p>
<h3>Details</h3>
<p>
    Title: <faker-name-jobTitle/> <br>
    Company: <faker-company-companyName/> <br>
    Phone: <faker-phone-phoneNumber/> <br>
    Portfolio: <faker-internet-url/> <br>
    Avatar: <faker-image-avatar/> <br>
    DOB: <faker-date-past/> <br>
    Address: <faker-address-streetAddress/> <br>
    Manager: <faker-name-firstName/>
</p>

will return

<h1>Hello Luther!</h1>
<p>
    Eius deleniti voluptas iure necessitatibus non minima ut.
    Nihil aut repellendus voluptates veritatis minus.
    At culpa distinctio.
</p>
<h3>Details</h3>
<p>
    Title: Forward Marketing Strategist <br>
    Company: Ledner, Erdman and Jaskolski <br>
    Phone: 749-134-2560 <br>
    Portfolio: http://orin.com <br>
    Avatar: https://s3.amazonaws.com/uifaces/faces/twitter/diansigitp/128.jpg <br>
    DOB: Mon Nov 16 2015 22:49:32 GMT+0530 (India Standard Time) <br>
    Address: 171 Nicolas Spurs <br>
    Manager: Kathlyn
</p>

Random data is produced even the same tag is repeated. for more details, take a look at faker library.

list of all tags

<faker-address-zipCode/>
<faker-address-city/>
<faker-address-cityPrefix/>
<faker-address-citySuffix/>
<faker-address-streetName/>
<faker-address-streetAddress/>
<faker-address-streetSuffix/>
<faker-address-streetPrefix/>
<faker-address-secondaryAddress/>
<faker-address-county/>
<faker-address-country/>
<faker-address-countryCode/>
<faker-address-state/>
<faker-address-stateAbbr/>
<faker-address-latitude/>
<faker-address-longitude/>

<faker-commerce-color/>
<faker-commerce-department/>
<faker-commerce-productName/>
<faker-commerce-price/>
<faker-commerce-productAdjective/>
<faker-commerce-productMaterial/>
<faker-commerce-product/>

<faker-company-suffixes/>
<faker-company-companyName/>
<faker-company-companySuffix/>
<faker-company-catchPhrase/>
<faker-company-bs/>
<faker-company-catchPhraseAdjective/>
<faker-company-catchPhraseDescriptor/>
<faker-company-catchPhraseNoun/>
<faker-company-bsAdjective/>
<faker-company-bsBuzz/>
<faker-company-bsNoun/>

<faker-date-past/>
<faker-date-future/>
<faker-date-between/>
<faker-date-recent/>
<faker-date-month/>
<faker-date-weekday/>

<faker-fake/>

<faker-finance-account/>
<faker-finance-accountName/>
<faker-finance-mask/>
<faker-finance-amount/>
<faker-finance-transactionType/>
<faker-finance-currencyCode/>
<faker-finance-currencyName/>
<faker-finance-currencySymbol/>

<faker-hacker-abbreviation/>
<faker-hacker-adjective/>
<faker-hacker-noun/>
<faker-hacker-verb/>
<faker-hacker-ingverb/>
<faker-hacker-phrase/>

<faker-helpers-randomize/>
<faker-helpers-slugify/>
<faker-helpers-replaceSymbolWithNumber/>
<faker-helpers-replaceSymbols/>
<faker-helpers-shuffle/>
<faker-helpers-mustache/>
<faker-helpers-createCard/>
<faker-helpers-contextualCard/>
<faker-helpers-userCard/>
<faker-helpers-createTransaction/>

<faker-image-image/>
<faker-image-avatar/>
<faker-image-imageUrl/>
<faker-image-abstract/>
<faker-image-animals/>
<faker-image-business/>
<faker-image-cats/>
<faker-image-city/>
<faker-image-food/>
<faker-image-nightlife/>
<faker-image-fashion/>
<faker-image-people/>
<faker-image-nature/>
<faker-image-sports/>
<faker-image-technics/>
<faker-image-transport/>

<faker-internet-avatar/>
<faker-internet-email/>
<faker-internet-userName/>
<faker-internet-protocol/>
<faker-internet-url/>
<faker-internet-domainName/>
<faker-internet-domainSuffix/>
<faker-internet-domainWord/>
<faker-internet-ip/>
<faker-internet-userAgent/>
<faker-internet-color/>
<faker-internet-mac/>
<faker-internet-password/>

<faker-lorem-words/>
<faker-lorem-sentence/>
<faker-lorem-sentences/>
<faker-lorem-paragraph/>
<faker-lorem-paragraphs/>

<faker-name-firstName/>
<faker-name-lastName/>
<faker-name-findName/>
<faker-name-jobTitle/>
<faker-name-prefix/>
<faker-name-suffix/>
<faker-name-title/>
<faker-name-jobDescriptor/>
<faker-name-jobArea/>
<faker-name-jobType/>

<faker-phone-phoneNumber/>
<faker-phone-phoneNumberFormat/>
<faker-phone-phoneFormats/>

<faker-random-number/>
<faker-random-arrayElement/>
<faker-random-objectElement/>
<faker-random-uuid/>
<faker-random-boolean/>

License

MIT © lokesh-coder