# tokenmgr

> Create tokens and manage them from your Node!

Latest version **1.0.1** (published 2021-09-24) · GPL-3.0 license · 0 weekly downloads

## Install

```sh
npm install tokenmgr
pnpm add tokenmgr
yarn add tokenmgr
bun add tokenmgr
```

## 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.0.1 |
| Published | 2021-09-24 |
| First published | 2021-09-23 |
| Weekly downloads | 0 |
| License | GPL-3.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | L'Ange Déchu |
| Maintainers | n0ct3ri4 |
| Keywords | token, manager |

## Links

- npm: https://www.npmjs.com/package/tokenmgr
- Repository: https://github.com/NocturneTeam/tokenmgr
- Homepage: https://github.com/NocturneTeam/tokenmgr#readme
- Issues: https://github.com/NocturneTeam/tokenmgr/issues
- npm.io page: https://npm.io/package/tokenmgr

## Recent versions

- 1.0.1 (latest) — 2021-09-24
- 1.0.0 — 2021-09-23

## README

<div align="center">
  <a href="https://npmjs.com/package/tokenmgr">
    <img src="https://img.shields.io/badge/npm-available-green?style=for-the-badge">
  </a>

  <a href="https://npmjs.com/package/tokenmgr?activeTab=versions">
    <img src="https://img.shields.io/badge/version-1.0.1-blue?style=for-the-badge">
  </a>
</div>

<hr>

## 🚀 Get started!

The first step is to import the module in your node.

```js
const tokenmgr = require("tokenmgr");
```

Then, initialize a new instance of the manager.

```js
const tm = new tokenmgr();
```

## 👩‍💻 How to create tokens?

You have to a single line to create a token.

```js
tm.create(64, {});
```

To add creation options, specify them into the braces.

```js
tm.create(64, {
  avoidNumbers: true,
  allUpperCase: true,
  allLowerCase: true,
});
```

> To disable an option, you just have to remove it from the table.

> All options are disabled by default.

## 💾 How to store them ?

Just use the `tm.store()` function.

```js
tm.store("name", token);

// You can create a token directly into the 'tm.store()' function.
tm.store("name", token);
```

Delete tokens with the `tm.del()` function.

```js
tm.del("name");
```

And get them with the `tm.get()` function.

```js
tm.get("name");
```

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