armory-embeds-chat-code

1.1.2 • Public • Published

armory-embeds-chat-code

NPM version NPM downloads

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.

Readme

Keywords

none

Package Sidebar

Install

npm i armory-embeds-chat-code

Weekly Downloads

3

Version

1.1.2

License

ISC

Last publish

Collaborators

  • madou