glue-cli

0.0.5 • Public • Published

Glue, APIs Framework.

Warning: WIP

Known limitations

  • doesnt support multiple requests

TODO

  • create an ast instead of the current hacked ts gen.

    {
        validators:[
            {
                name:string,
                args:[
                    'number',
                    'string'
                ]
            }
        ],
        guards:[
            {
                name:string,
                args:[
                    'string' // type
                ]
            }
        ],
        routes:[
            {
                name:string,
                handlers:[
                    {
                        name:string,
                        method:string,
                        path:string,
                        input:{
                            name:string,
                            type:string
                        },
                        guards:[
                            {
                                name:string,
                                args:['arg1','arg2']
                            }
                        ]
                    }
                ]
            }
        ],
        objects:[
            {
                name:string,
                props:[
                    {
                        name:string,
                        type:string,
                        validations:[
                            {
                                name:string,
                                args:['arg1','arg2']
                            }
                        ]
                    }
                ]
            }
        ]
    }
    

/glue-cli/

    Package Sidebar

    Install

    npm i glue-cli

    Weekly Downloads

    1

    Version

    0.0.5

    License

    MIT

    Unpacked Size

    180 kB

    Total Files

    28

    Last publish

    Collaborators

    • zorend