1.2.0 • Published 5 years ago
steamgroup-shortener v1.2.0
steamgroup-shortener
Steam group URL shortener
:package: Install with NPM
Execute install command in a terminal:
npm i steamgroup-shortener
:clipboard: 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!'