steamgroup-shortener
Steam group URL shortener
📦 Install with NPM
Execute install command in a terminal:
npm i steamgroup-shortener
📋 Usage
// Import the module
const shortenSteamGroupURL = require('steamgroup-shortener')
shortenSteamGroupURL.fromURL('https://steamcommunity.com/groups/SteamDotGroup')
// => 'https://steam.group/SteamDotGroup'
shortenSteamGroupURL.fromText('You can find our Steam group here: http://steamcommunity.com/groups/SteamDotGroup have fun!')
// => 'You can find our Steam group here: https://steam.group/SteamDotGroup have fun!'