migrate from gist.github.com/6a68/5122048 to nodejs winter repo