🚨 Active Supply Chain Attack:node-ipc Package Compromised.Learn More
Socket
Book a DemoSign in
Socket

jfaker

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jfaker

Generate randomized data in over 130 different categories

latest
Source
npmnpm
Version
1.2.0
Version published
Maintainers
1
Created
Source

jfaker

Generate fake data, great for databases! Ported from stympy's Ruby gem: https://github.com/stympy/faker

Usage

Install the package

$ npm i jfaker

Require then use jfaker in your JavaScript files

const faker = require('jfaker')

To view all generators in a category you can use this (I will be creating a doc file explaining each category and the values it has)

console.log(faker.overwatch)

Will return

{ heroes: [Function: heroes],
  locations: [Function: locations],
  quotes: [Function: quotes] }

So the random generators you have available for overwatch are: heroes(), locations() and quotes().

console.log(faker.overwatch.heroes())
console.log(faker.overwatch.locations())
console.log(faker.overwatch.quotes())
=> Bastion
=> Volskaya Industries
=> Oh, let's break it down!

Notice

132 of 148 categories have been ported so far. Some of them are still missing a few convert/generate functions but I'm slowing getting them implemented.

If you find any bugs or have any suggestions you can let me know here: https://github.com/timwaldron/jfaker/issues

v1.2.0

100% implemented the following libraries

address
app
book
buffy
coffee
commerce
company
dota
dune
job
markdown
name

Fixed/not 100% implemented

bank        Missing functions
id_number   Missing functions
lorem       Missing functions
compass     Disabled while finding solution

v1.1.3

Updated README.md layout, fixed corrupted libraries.

v1.1.2

Removed duplicate text in README.md

v1.1.0

Additional 63 categories added.

A - FG - OP - Z
back_to_the_futuregameparks_and_rec
bankgame_of_thronesprincess_bride
bojack_horsemanghostbustersprogramming_language
breaking_badgrateful_deadrick_and_morty
buffygreek_philosophersrupaul
chuck_norrishackershakespeare
colorhey_arnoldsilicon_valley
commercehitchhikers_guide_to_the_galaxysimpsons
communityhobbitsonic_the_hedgehog
companyhousesource
constructionhow_i_met_your_mothersouth_park
cosmerejobstargate
crypto_coinkpopstranger_thing
dc_comicslebowskistripe
dr_wholord_of_the_ringssword_art_online
dumb_and_dumberloremthe_expanse
dunemichael_scottthe_it_crowd
esportmusictwin_peaks
falloutnamev_for_vendetta
friendsnationworld_of_warcraft
new_girlzelda
overwatch

Categories (v1.0.0)

* jfaker

    *  address
        *  city_prefix
        *  city_suffix
        *  country
        *  state (USA)
        *  state_abbr (USA)
        *  time_zone
        
    *  ancient
        *  god
        *  primordial
        *  titan
        *  hero

    *  animal
        *  name

    *  app
        *  name
        *  version

    *  appliance
        *  brand
        *  equipment

    *  aqua_teen_hunger_force
        *  character

    *  artist
        *  names

    *  basketball

    *  beer
        *  brand
        *  name
        *  hop
        *  yeast
        *  malt
        *  style

    *  book
        *  title
        *  author
        *  publisher
        *  genre

    *  bossa_nova
        *  artists
        *  songs

    *  business
        *  credit_card_numbers
        *  credit_card_types

    *  cannabis
        *  strains
        *  cannabinoid_abbreviations
        *  cannabinoids
        *  terpenes
        *  medical_uses
        *  health_benefits
        *  categories
        *  types
        *  buzzwords

    *  cat
        *  name
        *  breed
        *  registry

    *  code
        *  asin

    *  coffee
        *  country
        *  brazil
        *  colombia
        *  sumatra
        *  ethiopia
        *  honduras
        *  kenya
        *  uganda
        *  mexico
        *  guatemala
        *  nicaragua
        *  costa_rica
        *  tanzania
        *  el_salvador
        *  rwanda
        *  burundi
        *  panama
        *  yemen
        *  india
        *  variety
        *  intensifier
        *  body
        *  descriptor
        *  notes
        *  name_1
        *  name_2
        *  blend_name

    *  coin

    *  compass
        *  word
        *  abbreviation
        *  azimuth

    *  culture_series

    *  currency
        *  code
        *  name
        *  symbol

    *  demographic
        *  race
        *  sex
        *  demonym
        *  educational_attainment
        *  marital_status

    *  dessert
        *  variety
        *  topping
        *  flavor

    *  device
        *  model_name
        *  platform
        *  manufacturer
        *  serial

    *  dog
        *  name
        *  breed
        *  sound
        *  meme_phrase
        *  age
        *  coat_length
        *  size

    *  dota
        *  hero
        *  quote
        *  item
        *  team
        *  player

    *  dragon_ball
        *  characters

    *  educator
        *  name
        *  secondary
        *  type
        *  subject
        *  course_number

    *  elder_scrolls
        *  race
        *  creature
        *  region
        *  dragon
        *  city
        *  first_name
        *  last_name

    *  electrical_components
        *  active
        *  passive
        *  electromechanical

    *  family_guy
        *  character
        *  location
        *  quote

    *  file
        *  extension
        *  mime_type

    *  food
        *  dish
        *  descriptions
        *  ingredients
        *  fruits
        *  vegetables
        *  spices
        *  measurements
        *  measurement_sizes
        *  metric_measurements
        *  sushi

    *  football
        *  teams
        *  players
        *  coaches
        *  competitions
        *  positions

    *  fresh_prince_of_bel_air
        *  characters
        *  celebrities

    *  funny_name
        *  name

    *  gender
        *  types
        *  binary_types

    *  half_life
        *  character
        *  enemy
        *  location

    *  harry_potter
        *  characters
        *  locations
        *  quotes
        *  books
        *  houses
        *  spells

    *  heroes
        *  names
        *  specialties
        *  klasses

    *  heroes_of_the_storm
        *  battlegrounds
        *  classes
        *  heroes
        *  quotes

    *  hipster
        *  words

    *  horse
        *  name
        *  breed

    *  id_number
        *  valid
        *  invalid

    *  industry_segments
        *  industry
        *  super_sector
        *  sector
        *  sub_sector

    *  invoice
        *  check_digit_method
        *  pattern

    *  league_of_legends
        *  champion
        *  location
        *  quote
        *  summoner_spell
        *  masteries
        *  rank

    *  lovecraft
        *  fhtagn
        *  deity
        *  location
        *  tome
        *  words

    *  markdown
        *  headers
        *  emphasis

    *  marketing
        *  buzzwords

    *  measurement
        *  height
        *  length
        *  volume
        *  weight
        *  metric_height
        *  metric_length
        *  metric_volume
        *  metric_weight

    *  military
        *  army_rank
        *  marines_rank
        *  navy_rank
        *  air_force_rank
        *  dod_paygrade

    *  movie
        *  quote

    *  nato_phonetic_alphabet
        *  code_word

    *  one_piece
        *  characters
        *  seas
        *  islands
        *  locations
        *  quotes
        *  akumas_no_mi

    *  opera

    *  phish
        *  song

    *  phone_number
        *  formats
        *  country_code

    *  pokemon
        *  names
        *  locations
        *  moves

    *  quote
        *  famous_last_words
        *  matz
        *  most_interesting_man_in_the_world
        *  robin
        *  singular_siegler
        *  yoda

    *  relationship
        *  direct
        *  extended
        *  in_law
        *  spouse
        *  parent
        *  sibling

    *  restaurant

    *  rock_band
        *  name

    *  science
        *  element
        *  element_symbol
        *  scientist

    *  seinfeld
        *  character
        *  quote
        *  business

    *  slack_emoji
        *  people
        *  nature
        *  food_and_drink
        *  celebration
        *  activity
        *  travel_and_places
        *  objects_and_symbols
        *  custom

    *  space
        *  planet
        *  moon
        *  galaxy
        *  nebula
        *  star_cluster
        *  constellation
        *  star
        *  agency
        *  agency_abv
        *  nasa_space_craft
        *  company
        *  distance_measurement
        *  meteorite
        *  launch_vehicule

    *  star_trek
        *  character
        *  location
        *  specie
        *  villain

    *  subscription
        *  plans
        *  statuses
        *  payment_methods
        *  subscription_terms
        *  payment_terms

    *  super_smash_bros

    *  superhero
        *  power
        *  prefix
        *  suffix
        *  descriptor

    *  team
        *  creature
        *  sport
        *  mascot

    *  the_thick_of_it
        *  characters
        *  positions
        *  departments

    *  umphreys_mcgee
        *  song

    *  university
        *  prefix
        *  suffix

    *  venture_bros
        *  character
        *  organization
        *  vehicle
        *  quote

    *  verbs
        *  base
        *  past
        *  past_participle
        *  simple_present
        *  ing_form

    *  witcher
        *  characters
        *  witchers
        *  schools
        *  locations
        *  quotes
        *  monsters

    *  yoda
        *  quotes

Keywords

data

FAQs

Package last updated on 08 Jul 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts