Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
language: node_js
node_js:
- "0.10"
- "0.12"
- "4.0"
services:
- redis-server
install:
- npm install
script:
- make test
4 changes: 3 additions & 1 deletion Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

Rate limiter for Node.js backed by Redis.

[![Build Status](https://travis-ci.org/tj/node-ratelimiter.svg)](https://travis-ci.org/tj/node-ratelimiter)

## Release Notes
[v2.1.1](https://github.com/tj/node-ratelimiter/tree/v2.1.1) - [#13](/../../pull/13) by [@kwizzn](https://github.com/kwizzn) - Fixes out-of-sync TTLs after running decr()

Expand Down Expand Up @@ -49,7 +51,7 @@ limit.get(function(err, limit){

## Result Object
- `total` - `max` value
- `remaining` - number of calls left in current `duration` without decreasing current `get`
- `remaining` - number of calls left in current `duration` without decreasing current `get`
- `reset` - time in milliseconds until the end of current `duration`

## Options
Expand Down