Closed crystalneth closed 12 years ago
Hmm... seems this project was never completed to a working state... lots of invalid references, etc.
I renamed the package to "limiter" and published to npm to resolve the conflict. I'll take a look at the invalid references shortly. Thanks for the heads up!
I figured this project was probably never completed - there were variables unset and referenced out of scope in the core functions, e.g. maxBurst.
Ended up with my own trivial implementation (didn't need the token system.) Seems like a useful library if you get it working :)
@aliix did you ever make your trivial implementation public? I'm in need of such a library.
@martindale @aliix, I fixed up a number of issues with the token bucket and pushed v1.0.0 of "limiter" to npm. Sorry for the inconvenience earlier, there were some bugs introduced when I extracted this library out of a larger project of mine and refactored it.
This is what I was looking for however it can't currently be installed with npm since there is already such a package.