Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Clojure library for fake data generation, port of ruby faker

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 src
Octocat-spinner-32 test
Octocat-spinner-32 .gitignore
Octocat-spinner-32 README.md
Octocat-spinner-32 project.clj
README.md

Faker

Faker is a port of Ruby Faker library to the clojure programming language.

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:

[faker "0.2.2"]

Usage

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

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

There are several more namespaces for generating:

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

Take a look at the documentation generated with autodoc here

Something went wrong with that request. Please try again.