steamid-regex

1.0.3 • Public • Published

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

Package Sidebar

Install

npm i steamid-regex

Weekly Downloads

15

Version

1.0.3

License

MIT

Unpacked Size

4.15 kB

Total Files

4

Last publish

Collaborators

  • winqdev