https://github.com/fantasyui-com/user-manager
Simple user manager for the people. [Object Database]
https://github.com/fantasyui-com/user-manager
library
Last synced: 4 months ago
JSON representation
Simple user manager for the people. [Object Database]
- Host: GitHub
- URL: https://github.com/fantasyui-com/user-manager
- Owner: fantasyui-com
- License: gpl-3.0
- Created: 2017-03-31T21:45:07.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2025-06-24T16:16:17.000Z (about 1 year ago)
- Last Synced: 2025-11-04T08:12:34.587Z (8 months ago)
- Topics: library
- Language: JavaScript
- Homepage:
- Size: 125 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# user-manager
Simple user manager for the people.
## Creating the data store
```JavaScript
const userManager = new UserManager({storeLocation: '~/Tests/user-manager-store/',});
```
## Adding Alice
```JavaScript
await userManager.userAdd('alice', {password:'hunter2', notes:[`${new Date()}: Account Creation`]});
```
## Adding (Upserting) a Note to Alice's Account
```JavaScript
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.
```JavaScript
await userManager.userMod('alice', {email:'alice@example.com'});
```
## LICENSE
GPLv3