1.0.3 • Published 9 months ago

steamid-regex v1.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

steamid-regex

SteamID Regex for all types of steamid

SteamID Regex

const regex = require("steamid-regex");

console.log(regex.steamid("STEAM_0:1:526443130"));
// Expected output: true

SteamID3 Regex

const regex = require("steamid-regex");

console.log(regex.steamid3("[U:1:873329666]"));
// Expected output: true

SteamID64 Regex

const regex = require("steamid-regex");

console.log(regex.steamid64("76561198833595394"));
// Expected output: true

Steam Link Regex

const regex = require("steamid-regex");

console.log(regex.steamlink("https://steamcommunity.com"));
// Expected output: true

// or
console.log(regex.steamlink("https://steampowered.com"));
// Expected output: true

Responses:

true - input matches with regex false - input doesn't match with regex

1.0.2

9 months ago

1.0.3

9 months ago

1.0.1

1 year ago

1.0.0

1 year ago