json-fs-cli
v0.1.2
Published
CLI that creates folders and files from a JSON config.
Readme
json-fs-cli
Small CLI that creates folders and files from a JSON config.
If any target file already exists, the CLI asks for confirmation before writing anything. If you decline, the run exits with no changes applied.
Example
{
"folders": ["src", "src/components"],
"files": ["src/index.ts", { "path": "README.md", "content": "# App" }]
}node ./dist/cli.js create --config structure.jsonnpm usage
After publishing the package, users can run:
bunx json-fs-cli create --config structure.json
npx json-fs-cli create --config structure.jsonIf the package is installed globally, the binary name is:
json-fs create --config structure.json