0.1.6 • Published 1 year ago
moonsight v0.1.6
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.6
1 year ago
0.1.52
1 year ago
0.1.30
1 year ago
0.1.31
1 year ago
0.1.32
1 year ago
0.1.33
1 year ago
0.1.34
1 year ago
0.1.35
1 year ago
0.1.36
1 year ago
0.1.37
1 year ago
0.1.51
1 year ago
0.1.49
1 year ago
0.1.28
1 year ago
0.1.29
1 year ago
0.1.41
1 year ago
0.1.42
1 year ago
0.1.43
1 year ago
0.1.44
1 year ago
0.1.45
1 year ago
0.1.46
1 year ago
0.1.47
1 year ago
0.1.48
1 year ago
0.1.40
1 year ago
0.1.39
1 year ago
0.1.23
1 year ago
0.1.24
1 year ago
0.1.25
1 year ago
0.1.26
1 year ago
0.1.27
1 year ago
0.1.22
2 years ago
0.1.21
2 years ago
0.1.2
2 years ago