Skip to content

🛡 Generates armory embed markup from a chat code.

Notifications You must be signed in to change notification settings

itsdouges/armory-embeds-chat-code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

🛡 Generates armory embed markup from a chat code.

Resources

Stars

Watchers

Forks

Packages

No packages published