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/watch
- a configurable watch function with nativefs.watch
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 fromroutington
.
koa/router
- a extremly simple yet powerful router creator.
MIT