0.1.169 • Published 1 year ago

deba-kerneljs v0.1.169

Weekly downloads
-
License
GPL
Repository
github
Last release
1 year ago

API

##demo > copy startup.js to your project

Kernel opts

{
  apiPath: '',
  port: PORT,
  logging: {
    error: true,
    http: true
  }
}

Kernel init

const cxt = await Kernel(opts);

Handlers

  • Http

    • export const ihttp = IHttp(handler, middlewares)
  • Socket

    • export const isocket = ISocket(handler, middlewares)
  • Kernel core

    • export const ikernel = IKernel(handler, middlewares)

Responses

  • Basic Response

    • Response(data, { message = '', status = 200 });
  • Not Found Response

    • NotFound({ message = '' });
  • Paginated Response

    • PaginatedResponse(data, { message = 'success', status = 200 })
  • Unhandled Response

    • UnhandledReponse(err)
  • Empty Response

    • EmptyResponse();
0.1.169

1 year ago

0.1.168

1 year ago

0.1.165

1 year ago

0.1.166

1 year ago

0.1.164

1 year ago

0.1.161

1 year ago

0.1.163

1 year ago

0.1.162

1 year ago

0.1.158

1 year ago

0.1.157

1 year ago

0.1.159

1 year ago

0.1.156

1 year ago

0.1.155

1 year ago

0.1.154

2 years ago

0.1.153

2 years ago

0.1.152

2 years ago

0.1.15

2 years ago

0.1.14

2 years ago

0.1.13

2 years ago

0.1.12

2 years ago

0.1.115

2 years ago

0.1.114

2 years ago

0.1.113

2 years ago

0.1.112

2 years ago

0.1.111

2 years ago

0.1.11

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago