doorman

Only allow a ID to be registered once.

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
doorman
220.0.211 years ago11 years agoMinified + gzip package size for doorman in KB

Readme

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