jhurliman / node-rate-limiter

A generic rate limiter for node.js. Useful for API clients, web crawling, or other tasks that need to be throttled
MIT License
1.51k stars 135 forks source link

Browser support? #9

Closed giacecco closed 9 years ago

giacecco commented 10 years ago

Hi jhurliman have you thought of making your code suitable to run within the web browser, too? Thanks.

G.

jhurliman commented 9 years ago

I believe the only current node.js dependency is the usage of require(). It should be possible to wrap this up into a browser-usable JS library using http://browserify.org/. I would be open to adding a script to the repo that automates this process.

jhurliman commented 9 years ago

This package has been published to bower.

husayt commented 3 years ago

Library also user process.xxx methods in couple of places too. That could be easily replaced as well