# easy-accounts

> A simple nodejs module for account management.

Latest version **1.2.0** (published 2017-01-31) · MIT license · 0 weekly downloads

## Install

```sh
npm install easy-accounts
pnpm add easy-accounts
yarn add easy-accounts
bun add easy-accounts
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.0 |
| Published | 2017-01-31 |
| First published | 2017-01-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Matt Corrigan |
| Maintainers | mcorr |

## Links

- npm: https://www.npmjs.com/package/easy-accounts
- npm.io page: https://npm.io/package/easy-accounts

## Dependencies (1)

- [jsonfile](https://npm.io/package/jsonfile.md) ^2.4.0

## Recent versions

- 1.2.0 (latest) — 2017-01-31
- 1.1.10 — 2017-01-31
- 1.1.9 — 2017-01-31
- 1.1.8 — 2017-01-31
- 1.1.7 — 2017-01-31
- 1.1.6 — 2017-01-31
- 1.1.5 — 2017-01-31
- 1.0.8 — 2017-01-30
- 1.0.7 — 2017-01-30
- 1.1.4 — 2017-01-21
- 1.1.3 — 2017-01-21
- 1.1.2 — 2017-01-21
- 1.1.1 — 2017-01-21
- 1.1.0 — 2017-01-21
- 1.0.6 — 2017-01-15
- … 6 more at https://npm.io/package/easy-accounts/versions

## README

# Easy-Accounts
A simple nodejs module for account management.

# Installation
To install, use `npm`'s package manager in the command line:

```
npm install easy-accounts
```

Next, put this at the top of your code to include this package:

```
var accounts = require("easy-accounts");
```

Some example code:

```
accounts.createUser("TestUser", "password1234");
myuser = accounts.getUserByName("TestUser");
console.log(myuser.password); // ouput is 'password1234'

// auto-save is enabled by default, saves every minute
accounts.turnOffAutoSave();
accounts.turnOnAutoSave();

// manual saving
accounts.save("accounts.data");

// for editing users, use accounts.users
for (var i = 0; i < accounts.users.length; i++) {
    var user = accounts.users[i];
    // add arbitrary attributes to users, for example 'elevation'
    if (user.username == "TestUser") {
      user.attr['elevation'] = "Admin";
    }
}
```

---
_Source: https://npm.io/package/easy-accounts · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
