/xkit

Primary LanguageJavaScript

A set of functions without any dependencies.

Notice: the primary goal I made this repo is to build small things without any shitty npm dependencies. If I have to depend on them, I just copied.

fs

  • fs/watch - a configurable watch function with native fs.watch

util

  • util/is-promise - a simple function to detect if an object is a promise.
  • util/noop - function without any operation.
  • util/sleep - sleep for x ms and return a promise.
  • util/routington - a shameless copy code from routington.

koa

  • koa/router - a extremly simple yet powerful router creator.

License

MIT