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

@praveen_prajapati/fakeit

v1.0.1

Published

fake details generator

Downloads

21

Readme

FAKEIT

Fake Info Generator
180+ functions and coming more...

Install

npm install @praveen_prajapati/fakeit

Simple Usage

Require

// ESM
import { person, country, book, animal } from "fakeit";
OR
import fake from "@praveen_prajapati/fakeit";

// CJS
const { person, country, book, animal } = require("fakeit");
OR
const fake from "@praveen_prajapati/fakeit";

Example

// const { book } = require("fakeit");
const createRandomBook = () => {
  return {
    title: book.title(), // Pride and Prejudice
    author: book.author(), // William Faulkner
    genre: book.genre(), // Crime
    genre: book.bookInfo(), // Object
  };
};

// const fake = require("fakeit");
const createRandomBook = () => {
  return {
    title: fake.book.title(), // Pride and Prejudice
    author: fake.book.author(), // William Faulkner
    genre: fake.book.genre(), // Crime
    genre: fake.book.bookInfo(), // Object
  };
};

All Methods

{ person, country, book, animal, card, image, car, post, user, company, lorem, business, quote, alias, space, food, human, house, space, vehicle, song, science}

Book

title() String
author() String
genre() String
bookInfo() Object

Country

name() String
state() String
city() String
postalCode() Number
house() Number
address() String
tld() String
latitude() Number
longtitude() Number
currency() String
isoCode() String
callCode() String
language() String
timezone() String
fullAdderss() String
countryInfo() Object

Person

gender() String
male() String
female() String
surname() String
name() String
person() Object
prefix() String
suffix() String
personInfo() Object
age() Number
birth() String
zodiac() String
profile(size) String // (200)
profileWithId(size, string) String // (200, 'user1')
avatar1(w,h,shape,bg,blur,sat) String // (200, 200, 'circle', 'ffffff', 50, 100)
avatar2(w,h,shape,bg,blur,sat) String // (200, 200, '', 'ffffff', 50, 100)
avatar3(w,h,shape,bg,blur,sat) String // (200, 200, 'circle', '000000', 50, 100)
avatar4(w,h,shape,bg,blur,sat) String // (200, 200, 'circle', 'ffffff', 50, 100)
avatar5(w,h,shape,bg,blur,sat) String // (200, 200, 'circle', 'ffffff', 50, 100)
personInfo(); Object
phone() Number
phoneFormat(string, string, string) String // ("9876543210", "-", "+1")
bloodGroup() String
personWeight() Number
personHeight() Number
favoriteColor() String
eyeColor() String
hairColor() String
favoriteStar() String
favoriteActress() String
favoriteActor() String
personCard() Object
personVehicle() Object
userAgent() String

Animal

bird() String
mammal() String
reptile() String
fish() String
insect() String
amphibian() String
mollusk() String
crustacean() String
arachnid() String
echinoderm() String
annelid() String
sponge() String
catBreed() String
dogBreed() String
animalInfo() Object

Company

companyName() String
slogan() String
smallSlogan() String
sloganWithKeyword(string) String
domain() String
companyEmail() String
companyInfo(); Object

Image

urlDummyImage() String // (width, height, bgcolor, color, format, text)
urlPlaceholder() String // (width, height, text)
urlPicsumPhotos() String // (width, height, isGrayscale, blur)
urlLoremFlickr() String // (width, height, keyword)
avatarDoodleipsumFive() String // (width, height, shape, bgcolor, blur, saturation)
avatarDoodleipsumFour() String // (width, height, shape, bgcolor, blur, saturation)
avatarDoodleipsumThree() String // (width, height, shape, bgcolor, blur, saturation)
avatarDoodleipsumTwo() String // (width, height, shape, bgcolor, blur, saturation)
avatarDoodleipsumOne() String // (width, height, shape, bgcolor, blur, saturation)
avatarLegacy() String
avatarGitHub() String
avatar() String
city() String // (width, height, randomize:boolean)
business() String // (width, height, randomize:boolean)
food() String // (width, height, randomize:boolean)
url() String // (width, height, randomize:boolean)
fashion() String // (width, height, randomize:boolean)
animal() String // (width, height, randomize:boolean)
cat() String // (width, height, randomize:boolean)
dog() String // (width, height, randomize:boolean)
nature() String // (width, height, randomize:boolean)
nightlife() String // (width, height, randomize:boolean)
people() String // (width, height, randomize:boolean)
sports() String // (width, height, randomize:boolean)
transport() String // (width, height, randomize:boolean)
technics() String // (width, height, randomize:boolean)
abstract() String // (width, height, randomize:boolean)
bird() String // (width, height, randomize:boolean)
image() String // (width, height)

User

username() String
userFirstName() String
userLastName() String
userAge() Number
userBirth(age) String // (29)
userProfileImage(size) String // size (200)
userZodiac() String
userGender() String
email() String
password(length, includeSpecialChars, includeSimilarChars) String // (16, true, true)
website() String
userAddress() Object
ipAddress() String
macAddress() String
ipV4Address() String
ipV6Address() String
userInfo(size) Array // profile image size/(200)

Credit Card

visa() Object
mastercard() Object
unionpay() Object
diners() Object
discover() Object
amex() Object
jcb() Object
card(string) Object // ('visa')

Car

maker() String
model() String
color() String
carYear() Number
engine() String
carInfo() Object

Post

post(postId) Object
hashtag() Array
getCommentsByPostId(postId) Object
getCommentById(commentId) Object
getUserById(userId) Object
getPostsByUserId(userId) Object
getPostById(postId) Object
posts() Object
comments() Object
users() Object

Quote

animeQuote() Object
bibleVerse() Object
bhagavadGitaVerse() Object
quote() Object
tongueTwister() String

Alias

hackerName() String
awesomeName() Object

Lorem

paragraphs(num, paragraphType, sentenceType, type) Array // (2, 'small', 'medium', 'lorem')
sentences(num, sentenceType, type) Array // (2, 'large', 'english')
words(num, type) String // (8, 'lorem')
numberToWords(string) String // ('120') // one hundred twenty

Business

name(string) String; // ('pearl')

Space

planet() String
galaxy() String
star() String
moon() String

House

flower() String
kitchen() String
instrument() String
furniture() String
room() String

Human

bodyPart() String
emotion() String

Food

vegetable() String
fruit() String
foodName() String
drink() String

Vehicle

transport() String

Song

songName() String
genre() String

Science

unit() Object
getChemicalElementsByElementGroup(string) Object // ('Nonmetal')
getChemicalElementBySymbol(string) Object // ('He')
getChemicalElementByAtomicNumber(number) Object // (10)
getChemicalElementByName(string) Object // ('Oxygen')
chemicalElement() Object

Special Thanks

dummyimage.com
loremflickr.com
lorempixel.com
via.placeholder.com
picsum.photos
doodleipsum.com
cloudflare-ipfs.com avatar
github avatars

To DO

Other methods and options are coming soon...