0.1.6 • Published 9 months ago

moonsight v0.1.6

Weekly downloads
-
License
GPL
Repository
github
Last release
9 months 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.6

9 months ago

0.1.52

10 months ago

0.1.30

10 months ago

0.1.31

10 months ago

0.1.32

10 months ago

0.1.33

10 months ago

0.1.34

10 months ago

0.1.35

10 months ago

0.1.36

10 months ago

0.1.37

10 months ago

0.1.51

10 months ago

0.1.49

10 months ago

0.1.28

10 months ago

0.1.29

10 months ago

0.1.41

10 months ago

0.1.42

10 months ago

0.1.43

10 months ago

0.1.44

10 months ago

0.1.45

10 months ago

0.1.46

10 months ago

0.1.47

10 months ago

0.1.48

10 months ago

0.1.40

10 months ago

0.1.39

10 months ago

0.1.23

10 months ago

0.1.24

10 months ago

0.1.25

10 months ago

0.1.26

10 months ago

0.1.27

10 months ago

0.1.22

1 year ago

0.1.21

1 year ago

0.1.2

1 year ago