Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

userbox

napoleond5MIT0.2.0

A really simple way to store user records in a JSON file.

auth, authentication, file-based, flat-file, user, auth

readme

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