1️⃣ Define a Project Structure
You can define a structure using nested objects or parse from a text-based visual tree:
1const structure = {2 "src": {3 "index.js.template": "console.log('Hello {{name}}!');",4 "utils.js": "// utility functions"5 },6 "README.md": "# {{projectName}}"7};
Or parse from text:
1const textTree = `2src/3├── index.js.template console.log('Hello {{name}}!');4├── utils.js5README.md # Project README6`;8const structure = Parser(textTree, true, { separator: null, metadata: true });