0.1.5 • Published 9 years ago

foundationdb-uniquename v0.1.5

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

foundationdb-uniquename

Build Status

A simple module to manage a set of unique names in FoundationDb. This can be useful for users choosing aliases on a website, or unique phone numbers, etc.

    var UniqueNames = require('foundationdb-uniquename');
    var usernames = new UniqueNames({
        directory: 'usernames'
    });
    usernames.takeName('djMax', 'user_id_or_guid_or_something', function (error, success) {
        // If success is true and error is null, this user now owns the name.
        assert(success, 'takeName should have worked');
    });
0.1.5

9 years ago

0.1.4

9 years ago

0.1.3

9 years ago

0.1.2

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago