https://github.com/itsdouges/armory-embeds-chat-code
🛡 Generates armory embed markup from a chat code.
https://github.com/itsdouges/armory-embeds-chat-code
Last synced: 11 months ago
JSON representation
🛡 Generates armory embed markup from a chat code.
- Host: GitHub
- URL: https://github.com/itsdouges/armory-embeds-chat-code
- Owner: itsdouges
- Created: 2017-10-10T07:35:33.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-10-12T00:14:37.000Z (over 8 years ago)
- Last Synced: 2025-01-23T14:38:32.091Z (12 months ago)
- Language: JavaScript
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# armory-embeds-chat-code
[](https://www.npmjs.com/package/armory-embeds-chat-code)
[](https://www.npmjs.com/package/armory-embeds-chat-code)
Generates armory embeds markup from a chat code.
## Usage
```sh
npm install armory-embeds-chat-code
```
```javascript
import parseChatCode from 'armory-embeds-chat-code';
parseChatCode('[&CvUbAAA=]');
//
```
## Api
### `parseChatCode(chatcode: string, options: ?Options): string`
#### `Options: Object`
| property | type | description |
|-|-|-|
| tag | `string` | Custom tag for the embed, defaults to `div`. |
| attributes | `Object` | Key/value object of extra attributes to add to the markup. |