Skip to content

Latest commit

 

History

History
22 lines (13 loc) · 626 Bytes

README.md

File metadata and controls

22 lines (13 loc) · 626 Bytes

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!