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.

/createx-generator/

    Package Sidebar

    Install

    npm i createx-generator

    Weekly Downloads

    0

    Version

    0.11.1

    License

    MIT

    Unpacked Size

    54.8 kB

    Total Files

    19

    Last publish

    Collaborators

    • dan2dev