DST-Tools / steam-formatting

Format strings in BBCode like Steam-Workshop and Community (See https://steamcommunity.com/comment/Announcement/formattinghelp)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

steam-formatting

Format strings in BBCode like Steam-Workshop and Community (See https://steamcommunity.com/comment/Announcement/formattinghelp)

Installation

Use npm for installation:

npm install steam-formatting

Usage

Require the module with following line:

const formatter = require('steam-formatting');

After initialisation, you can:

Format Description/Text/Strings

var parsed = formatter.format('[b]Hello World[/b]! Click the [url=http://google.com/]Link[/url]');

Available Options

See Wiki for detailed informations!

About

Format strings in BBCode like Steam-Workshop and Community (See https://steamcommunity.com/comment/Announcement/formattinghelp)

License:MIT License


Languages

Language:JavaScript 100.0%