Skip to content

dan2dev/createx

Repository files navigation

createx

styled with prettier Dev Dependencies Donate

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()

Attention

This is an experimental library. Not yet ready for production.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published