No description, website, or topics provided.
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
test
.gitignore
.jshintignore
.jshintrc
.travis.yml
Makefile
README.md
doorman.js
package.json

README.md

doorman

Only allow a ID to be registered once.

build status

Installation

  npm install doorman

Usage

var dedupe = doorman()
dedupe('1') // true
dedupe('1') // false
dedupe('2') // true
dedupe('2') // false
dedupe.list() // { '1': true, '2': true }

Loading

var dedupe = doorman({ '1': true })
dedupe('1') // false
dedupe('2') // true
dedupe('2') // false

Credits

Paul Serby follow me on twitter @serby

Licence

Licensed under the New BSD License