promise-loopie provides a memory and stack efficient pattern for infinite asynchronous looping/chaining with promises.
The ./test/count.js
file demonstrates how to use this library.
$ vim ./test/count.js
$ node ./test/count.js
This program is licensed under CC0. You may use it as you wish.