Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/simonalling/bbcode-tags
- Owner: SimonAlling
- License: mit
- Created: 2019-01-15T11:59:13.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-03-04T03:05:51.000Z (almost 2 years ago)
- Last Synced: 2024-11-01T09:22:08.770Z (3 months ago)
- Language: TypeScript
- Homepage:
- Size: 738 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.