bbcode-tags
v1.1.1
Published
Basic BBCode tag creation.
Downloads
23
Maintainers
Readme
bbcode-tags
Installation
npm install --save bbcode-tags
Usage
import * as BB from "bbcode-tags";
BB.start("i") + "italics" + BB.end("i"); // [i]italics[/i]
BB.start("url", "https://example.com") + "link" + BB.end("url"); // [url="https://example.com"]link[/url]
BB.empty("b"); // [b][/b]
TypeScript
TypeScript declarations are included.