Popularity
7.9
Stable
Activity
0.0
Stable
46
3
4

Monthly Downloads: 15
Programming language: Haskell
License: MIT License
Tags: Testing    
Latest version: v0.1.0

faker alternatives and similar packages

Based on the "Testing" category.
Alternatively, view faker alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of faker or a related project?

Add another 'Testing' Package

README

Faker

Build Status Hackage

Faker is pure Haskell library for generating fake data.

  β€œIt comes in very handy for taking screenshots (taking screenshots for my project,
  Catch the Best was the original impetus for the creation of this gem),
  having real-looking test data, and having your database populated with more
  than one or two records while you're doing development.”

                                              @stympy, creator of faker gem for Ruby

Inspired by:

Install

cabal install faker

Usage

:m Faker.Name

runFaker name -- => John Werbowsky

Modules/Functions

  • Address
    • [x] buildingNumber
    • [x] city
    • [x] cityPrefix
    • [x] citySuffix
    • [x] country
    • [x] latitude
    • [x] longitude
    • [x] postcode
    • [x] secondaryAddress
    • [x] state
    • [x] stateAbbr
    • [x] streetAddress
    • [x] streetName
    • [x] streetSuffix
    • [x] timeZone
  • Name
    • [x] firstName
    • [x] lastName
    • [x] name
    • [x] prefix
    • [x] suffix
    • [x] title
  • Company
    • [x] name
    • [x] buzzwords
    • [x] bs
    • [x] suffix
    • [x] catchPhrase
    • [x] ein
    • [x] dunsNumber
    • [x] logo
  • App
    • [x] name
    • [x] version
    • [x] author
  • Business
    • [x] creditCardNumber
    • [x] creditCardExpiryDate - TODO: should return date
    • [x] creditCardType
  • CreditCard
    • [x] visa
    • [x] mastercard
    • [x] discover
    • [x] discover
    • [x] americanExpress
    • [x] dinersClub
    • [x] jcb
    • [x] switch
    • [x] solo
    • [x] dankort
    • [x] maestro
    • [x] forbrugsforeningen
    • [x] laser
  • Internet
    • [x] email
    • [x] safeEmail
    • [x] freeEmail
    • [x] generateEmail userName
    • [x] userName
    • [x] domainSuffix
    • [x] freeEmailDomain
  • Hacker
    • [x] saySomethingSmart
    • [x] abbreviation
    • [x] adjective
    • [x] noun
    • [x] verb
    • [x] ingverb
    • [x] phrases
  • Lorem
    • [ ] characters range -- (15,255)
    • [x] characters num
    • [ ] paragraph range -- (2,5)
    • [x] paragraph num
    • [ ] paragraphs range -- (2,5)
    • [x] paragraphs num
    • [ ] sentence range -- (4,10)
    • [x] sentence num mark
    • [ ] sentences range -- (2,5)
    • [x] sentences num
    • [x] word
    • [ ] sentences range -- (3,6)
    • [x] sentences num
  • Avatar
    • [x] imageUrl
    • [ ] imageUrl slug
    • [ ] imageUrl width height
    • [ ] imageUrl slug width height
  • Code
    • [ ] isbn
    • [ ] isbn10
    • [ ] isbn13
    • [ ] issn
  • ...

Thanks

@igas for idea and explanation

TODO

  • Add rest modules and functions
  • Improve performance
  • Add haddoc documentation
  • Use it with quickcheck
  • Add translations

Tools

Faker designed as lightweight library, because of it it can be easily used with other tools.

License

MIT License.


*Note that all licence references and agreements mentioned in the faker README section above are relevant to that project's source code only.