createx-generator
TypeScript icon, indicating that this package has built-in type declarations

0.11.1 • Public • Published

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.

Dependencies (6)

Dev Dependencies (37)

Package Sidebar

Install

npm i createx-generator

Weekly Downloads

11

Version

0.11.1

License

MIT

Unpacked Size

54.8 kB

Total Files

19

Last publish

Collaborators

  • dan2dev