codys-user-system
v1.0.3
Published
A system to make it easy to interact with user files.
Downloads
4
Maintainers
Readme
###Easy to use User system. Example:
const US = require('codys-user-system')
const json = {
"name": "Cody4687",
"kills": 10
}
US.newUser(json.name, json)
const user = US.getUser('Cody4687')
console.log('Name: '+user.name+'\nKills: '+user.kills)
Methods
const US = require('codys-user-system')
US.newUser(name, json) //Create the json file.
US.getUser(name) //Load the json file.
US.deleteUser(name) //Delete a user.
This is all saved locally in ./users