npm / uid-number

Convert a username/group name to a uid/gid number

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Why this requires promise

vko-online opened this issue · comments

i have this method

exports.send_sms = function(phone, done){
    uidNumber(phone, function (err, uid, gid) {
        if(err) {
            done(err, null);
        } else {
            done(null, uid);
        }
    });
};

Why this can't be just used as uidNumber.get_uid() ?

I'm not sure what that method is doing. This module is for getting a uid from a username.

Right, there must be a misunderstanding on @vko-online's behalf.

Close ticket?