origami-generator

1.0.3 • Public • Published

Origami Generator :p

Overview

CLI Template origami Generator is a command-line tool that automates the creation of directory structures and files based on JSON or YAML configuration files. This helps developers standardize project structures efficiently.

Features

  • Generate: Create a directory structure from a JSON/YAML template.
  • 🛠️ Planned Features:
    • Validation of configuration files.
    • Dry-run mode for previewing structure.
    • Environment variable support.
    • Advanced templating with placeholders.

Installation

bun install -g origami-generator

Usage

origami-generator generate -c config.json 

Example JSON Config

{
  "root": "my_project",
  "structure": {
    "src": {
      "index.ts": "console.log('Hello, world!');"
    },
    "README.md": "# My Project"
  }
}

Example YAML Config

root: my_project
structure:
  src:
    index.ts: "console.log('Hello, world!');"
  README.md: "# My Project"

Contributing

Contributions are welcome! Submit issues and pull requests on GitHub.

License

MIT License.

Package Sidebar

Install

npm i origami-generator

Weekly Downloads

5

Version

1.0.3

License

MIT

Unpacked Size

283 kB

Total Files

12

Last publish

Collaborators

  • shiro_yuka