Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/simonalling/bbcode-tags

Basic BBCode tag creation
https://github.com/simonalling/bbcode-tags

Last synced: about 1 month ago
JSON representation

Basic BBCode tag creation

Awesome Lists containing this project

README

        

# bbcode-tags

## Installation

```
npm install --save bbcode-tags
```

## Usage

```typescript
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.