A Node.js package to parse VRChat location string
npm install vrchat-location-parser
or with pnpm:
pnpm add vrchat-location-parser
import { parseInstance, parseLocation } from 'vrchat-location-parser'
parseLocation('wrld_4432ea9b-729c-46e3-8eaf-846aa0a37fdd:12345~region(eu)')
parseInstance('wrld_4432ea9b-729c-46e3-8eaf-846aa0a37fdd', '12345~region(eu)')
Pull requests are welcome! If you have any ideas, feel free to open an issue.