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