0.1.159 • Published 7 days ago
deba-kerneljs v0.1.159
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.158
7 days ago
0.1.157
7 days ago
0.1.159
7 days ago
0.1.156
7 days ago
0.1.155
10 days ago
0.1.154
5 months ago
0.1.153
6 months ago
0.1.152
6 months ago
0.1.15
6 months ago
0.1.14
6 months ago
0.1.13
6 months ago
0.1.12
6 months ago
0.1.115
6 months ago
0.1.114
6 months ago
0.1.113
6 months ago
0.1.112
6 months ago
0.1.111
6 months ago
0.1.11
6 months ago
0.1.1
6 months ago
0.1.0
6 months ago