1.2.0 • Published 3 years ago
vildravn-gw2-embeds-chat-code v1.2.0
vildravn-gw2-embeds-chat-code
Generates armory embeds markup from a chat code.
Forked from madou/armory-embeds-chat-code.
Usage
npm install vildravn-gw2-embeds-chat-code
import parseChatCode from 'vildravn-gw2-embeds-chat-code';
parseChatCode('[&AgGqLgEA]');
// <div data-armory-embed="items" data-armory-ids="77482"></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. |
1.2.0
3 years ago