Skip to content

DST-Tools/steam-formatting

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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!