Fony
A simple command line tool for generating fake data from a template string
Install / Use
/learn @captainsafia/FonyREADME
fony
fony is a simple command line tool that generates dummy JSON data from a provided template.
The application utilizes Chance.js under the hood so any data type supported by Chance.js is supported by fony.
fony is intended to provide a simple solution to the most common data generation needs. You can use the command line to pipe output from fony to other tools and integrate it into your workflow.
Installation
npm install --global fony
Usage
Usage: fony [options]
Options:
-h, --help output usage information
-V, --version output the version number
-t, --template <template> JSON template for data to be generated
-c, --count [count] The number of elements to create, defaults to 1
Example
Mac and Linux folks can use single quotes around a double-quoted string of JSON like this:
fony -t '{"name": "name", "age": "age", "address": "address"}' -c 2
But Windows handles quotes on the command line differently, so be sure to escape your strings and only use double quotes:
fony -t "{\"name\": \"name\", \"age\": \"age\", \"address\": \"address\"}" -c 2
Niceties
fony supports nested fixtures:
$ fony -t '{"foo": {"bar": "name"}}'
{
"foo": {
"bar": "Virgie Davidson"
}
}
As well as arrays:
$ fony -t '{"tags": ["word", 3]}'
{
"tags": [
"oklu",
"odikabi",
"coan"
]
}

Related Skills
node-connect
347.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
108.0kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
347.2kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
347.2kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
