1 | <p align="center">
|
2 | <a href="https://nodered.org/"><img src="https://img.shields.io/badge/Platform-Node--RED-brown.svg" alt="Platform"></a> <a href="https://flows.nodered.org/node/node-red-contrib-friendly-id"><img src="https://img.shields.io/npm/v/node-red-contrib-friendly-id/latest?color=brightgreen&label=release" alt="npm@latest"></a> <a href="https://packagephobia.com/result?p=node-red-contrib-friendly-id"><img src="https://packagephobia.com/badge?p=node-red-contrib-friendly-id" alt="install size"></a> <br />
|
3 | <img src="https://img.shields.io/badge/npm-6.9.0-blue.svg" alt="npm">
|
4 | <a href="https://opensource.org/licenses/MIT"><img src="https://img.shields.io/npm/l/node-red-contrib-friendly-id" alt="License: MIT"></a>
|
5 | <a href="#"><img src="https://img.shields.io/snyk/vulnerabilities/npm/node-red-contrib-friendly-id" alt="vulnerabilities"></a>
|
6 | </p>
|
7 |
|
8 | # node-red-contrib-friendly-id
|
9 | A node for [Node-RED](http://www.nodered.org/) that converts a given UUID to a URL-friendly ID(short-uuid). You can also generate secure ID using [nanoid](https://github.com/ai/nanoid) and [short-uuid](https://github.com/oculus42/short-uuid).
|
10 |
|
11 | ## Installation
|
12 | Run the following command in the root directory of your Node-RED install:
|
13 | ```shell
|
14 | $ npm install node-red-contrib-friendly-id
|
15 | ```
|
16 |
|
17 | ## Usage
|
18 |
|
19 | ### from UUID / to UUID
|
20 | ![encode-decode](.images/encode-decode.gif)
|
21 |
|
22 |
|
23 | ### Generate Friendly ID
|
24 | ![generate](.images/generate-id.gif)
|
25 |
|
26 | ## Acknowledgements
|
27 | This project uses the following open source software:
|
28 | - [short-uuid](https://www.npmjs.com/package/short-uuid) - [MIT License](https://github.com/oculus42/short-uuid/blob/develop/LICENSE)
|
29 | - [nanoid](https://www.npmjs.com/package/nanoid) - [MIT License](https://github.com/ai/nanoid/blob/main/LICENSE)
|
30 | - [nanoid-dictionary](https://www.npmjs.com/package/nanoid-dictionary) - [MIT License](https://github.com/CyberAP/nanoid-dictionary/blob/master/LICENSE)
|
31 |
|
32 | ## License
|
33 | This project is released under the [MIT License](LICENSE). |
\ | No newline at end of file |