atomic-id
v0.0.5
Published
Make a list of users with ids!
Downloads
12
Readme
Make a list with your identifiers and use ids to found hers
The ids are generated from the number 111111
Example using the variable simpleid
to call the module:
Create:
var atomicid = require('atomic-id');
atomicid.create('123456789');
if (atomicCreateErr) {
console.log('Has a user with this name');
return
}
console.log(atomicCreateUser + " has gained a new id " + atomicCreateID);
GetID:
var atomicid = require('atomic-id);
atomicid.getID('123456789');
if (atomicGetErr) {
console.log('Don't have a user with this name');
return
}
console.log('The id is ' + atomicGetID);
GetUser:
var atomicid = require('atomic-id);
atomicid.getUser('111111');
if (atomicGetErr) {
console.log('Don't have a user with this id');
return
}
console.log('The user is ' + atomicGetUser);
Delete: Delete can use both arguments (User and ID)
var atomicid = require('atomic-id);
atomicid.delete('123456789');
if (atomicDelErr) {
console.log('Don't have a user with this name');
return
}
console.log('The user has deleted');
About me: I only have 14 years old, I live in Brazil country and I have also never taken a JavaScript or English course so I'm sorry if you have any errors