createx-generator
v0.11.1
Published
[![styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg)](https://github.com/prettier/prettier) [![Dev Dependencies](https://david-dm.org/dan2dev/createx/dev-status.svg)](https://david-dm.org/dan2dev/createx?type=dev) [![Dona
Downloads
24
Readme
createx
This library has the intention to help to generate code based on templates.
Installation
npm install createx-generator
Usage
// import
import { File, region } from 'createx';
// use
new File('./models/person.ts')
.render(`
export class Person {
${region('generated',`
name: string;
phone: string;`)}
}
`).overwrite(false).overwriteRegions(true).save()