muenchhausen-client
Shell client to generate huge quantities of authentic fake data for testing purposes or mockups.
Last updated 3 years ago by s-a .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install muenchhausen-client -g
SYNC missed versions from official npm registry.

module logo

NPM version Build Status Dependency Status Coverage percentage Codacy Badge Donate

Quickly get realistic mockup fake content data in your shell

Installation

$ npm install -g muenchhausen-client

Syntax

  • mh <template-string> [--culture en-GB] [--rows 1]
  • echo "<template-string>" | mh [--culture en-GB] [--rows 1]

Usage

Start Within Minutes...

$ echo "Fake-News: $(person.firstname) $(person.lastname) is a super hero action movie star born on $(date.future)" | mh
"Fake-News: Chuck Noris is a super hero action movie star born on 06/03/3513"

$ mh "now:$(date.now) random:$(date.random min:20200901)	random:	$(date.random)	$(time.now)	$(date.weekday)" --culture de-DE
now:22.02.2017 random:09.01.8692	random:	19.04.7308	08:02:54	Dienstag

$ c:\git\muenchhausen>mh "$(person.firstname) $(person.lastname) | $(address.random)$(address.street) - $(address.number), $(address.city), $(address.postcode)" --rows 5 --culture fr-FR
Ange Moreau | rue jean antoine chaptal - 159, Plaisir, 78370
Henriette Robert | rue jean louis gay lussac - 57, Plaisir, 78370
Justine Thomas | rue lavoisier - 129, Houilles, 78800
Alphonse Richard | grande rue - 97, Chambourcy, 78240
Bruno Dubois | rue marie jean antoine condorcet - 74, Plaisir, 78370

$ mh "$(number.random min:100,max:200)" --culture ja-JP
198

All fake commands available in templates

Parameters

Name Description
<template-string> A template string to render fake data.
--culture A local string to specify fake data culture which defaults to "en-GB".
--rows The number of rows you expect which defaults to "1".
help, --help, /? Show help.
version, --version, -v Show version.

For more deatils plsease see COMMANDLINE-ARGUMENTS.md

API

muenchhausen-client is based on the muenchhausen node module. A detailed API description is available at https://github.com/s-a/muenchhausen/tree/master/docs

License

MIT © s-a

Current Tags

  • 1.0.4                                ...           latest (3 years ago)

5 Versions

  • 1.0.4                                ...           3 years ago
  • 1.0.3                                ...           3 years ago
  • 1.0.2                                ...           3 years ago
  • 1.0.1                                ...           3 years ago
  • 0.0.1                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 1
Last Month 1
Dependencies (4)
Dev Dependencies (5)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |