edufaker

Generate fake data, specialized for edtech needs



Documentation

Faker

EduFaker is a port of Ruby Faker library to the clojure programming language, but with extra EdTech nonsense enhancements.

It is useful when you want to generate fake but good-looking data, such as in test scenarios or staging servers.

Installation

The easiest way is to use Leiningen. Add the following dependency to your project.clj file:

[edufaker "0.2.2"]

Usage

(ns test
  (:use edufaker.name edufaker.lorem))

(def n (take 10 (names)))
(def p (take 10 (paragraphs)))

Usage with a seed value for repeatable results

(ns test
  (:use edufaker.company edufaker.seed))

(startup) => "Scootru"
(startup) => "Crowdgenuity"

(with-seed startup 10) => "Scootgebra"
(with-seed startup 10) => "Scootgebra"

There are several more namespaces for generating:

  • Person names
  • Company names
  • Addresses
  • Domains and emails
  • Telephone numbers
  • Text

Take a look at the repo on github: here