# kc-tokenize

> [nodejs] Tokenize data.

Latest version **1.0.3** (published 2021-03-23) · ISC license · 0 weekly downloads

## Install

```sh
npm install kc-tokenize
pnpm add kc-tokenize
yarn add kc-tokenize
bun add kc-tokenize
```

## 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.3 |
| Published | 2021-03-23 |
| First published | 2020-08-04 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 2.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | KaisarCode |
| Maintainers | kaisarcode |
| Keywords | tokenize, data |

## Links

- npm: https://www.npmjs.com/package/kc-tokenize
- Repository: https://github.com/kaisarsnippets/node-tokenize
- Issues: https://github.com/kaisarsnippets/node-tokenize/issues
- npm.io page: https://npm.io/package/kc-tokenize

## Dependencies (2)

- [kc-aes256](https://npm.io/package/kc-aes256.md) ^1.0.7
- [kc-timespan](https://npm.io/package/kc-timespan.md) ^1.0.4

## Alternatives

- [gamedig](https://npm.io/package/gamedig.md) — 29.3K weekly downloads
- [join-monster](https://npm.io/package/join-monster.md) — 12.8K weekly downloads
- [masked](https://npm.io/package/masked.md) — 5.5K weekly downloads
- [@comunica/actor-query-process-explain-logical](https://npm.io/package/@comunica/actor-query-process-explain-logical.md) — 4.7K weekly downloads
- [@veracity/vui](https://npm.io/package/@veracity/vui.md) — 4.6K weekly downloads

## Recent versions

- 1.0.3 (latest) — 2021-03-23
- 1.0.2 — 2020-12-23
- 1.0.1 — 2020-10-09
- 1.0.0 — 2020-08-04

## README

# Tokenize
[nodejs] Tokenize data.

### Install
```
npm install kc-tokenize
```

### Use
```js
var tokenize = require('kc-tokenize');
var key = 'abcd';
var exp = 3600; // Expiration in seconds

var tkn = tokenize.encode(key, exp, {
    a: 'Hello'
});
console.log(tkn);

var dta = tokenize.decode(key, tkn);
console.log(dta);
```

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