user-manager

1.25.0 • Public • Published

user-manager

Simple user manager for the people.

Creating the data store

const userManager = new UserManager({storeLocation: '~/Tests/user-manager-store/',});

Adding Alice

await userManager.userAdd('alice', {password:'hunter2', notes:[`${new Date()}: Account Creation`]});

Adding (Upserting) a Note to Alice's Account

let alice = await userManager.userGet('alice');
alice.notes.push(`${new Date()}: Customer called tech-support on Christmas Day, said "Cats are little people" and hung up.`);
await userManager.userSet(alice);

Account Modification, Adding a Field.

await userManager.userMod('alice', {email:'alice@example.com'});

LICENSE

GPLv3

Readme

Keywords

none

Package Sidebar

Install

npm i user-manager

Weekly Downloads

1

Version

1.25.0

License

ISC

Unpacked Size

36.7 kB

Total Files

5

Last publish

Collaborators

  • fantasyui.com