Notary Public Mystifier

    userbox

    0.2.0 • Public • Published

    userbox

    A really simple file-based auth system for node.js; persists user records in a JSON file, and includes password hashing/checking by default.

    var userBox = require('userbox')('path/to/file.json')
    userBox.create('<user_id>','<clearTextPass>',{<profile>}) //adds user to file with hashed pass
    userBox.authenticate('<user_id>','<clearTextPass>') //returns boolean
    userBox.read('<user_id>') //returns user record
    userBox.update('<user_id>',['<clearTextPass>'],[{<profile>}]) //you guessed it
    userBox.delete('<user_id>') //yep

    Keywords

    none

    Install

    npm i userbox

    DownloadsWeekly Downloads

    1

    Version

    0.2.0

    License

    MIT

    Last publish

    Collaborators

    • napoleond