0.1.5 • Published 10 years ago

foundationdb-uniquename v0.1.5

Weekly downloads
2
License
MIT
Repository
github
Last release
10 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

10 years ago

0.1.4

10 years ago

0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago