armory-embeds-chat-code
v1.1.2
Published
Generates armory embeds markup from a chat code.
Downloads
2
Readme
armory-embeds-chat-code
Generates armory embeds markup from a chat code.
Usage
npm install armory-embeds-chat-code
import parseChatCode from 'armory-embeds-chat-code';
parseChatCode('[&CvUbAAA=]');
// <div data-armory-embed="skins" data-armory-ids="7157"></div>
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. |