@kylqin/tpl

    0.0.1 • Public • Published

    tpl

    A Command-line tool to create Folder/File Templates and generate folders or files from these templates.

    Usage

    New/delete Template.

    tpl new <name> -tf    # new file template named <name>
    tpl new <name>        # new folder template named <name>
    tpl delete <name>     # delete folder template named <name>

    Generate folders or files.

    # generate file or folder in current directory ($PWD)
    tpl generate <tpl-name> <name>
    
    # generate file or folder named <name> from template named <tpl-name> in <path>
    tpl g <tpl-name> <name> <path>

    List templates.

    tpl ls               # list all templates
    tpl ls <pattern>     # list templates filtered by pattern
    tpl ls -tf <pattern> # list file templates filtered by pattern
    tpl ls -td <pattern> # list folder templates filtered by pattern

    Install

    npm i @kylqin/tpl

    DownloadsWeekly Downloads

    1

    Version

    0.0.1

    License

    ISC

    Unpacked Size

    14.8 kB

    Total Files

    13

    Last publish

    Collaborators

    • kylqin