Skip to content

LunyaaDev/vrchat-location-parser

Repository files navigation

vrchat-location-parser

A Node.js package to parse VRChat location string

Installation

npm install vrchat-location-parser

or with pnpm:

pnpm add vrchat-location-parser

Usage

import {
  parseInstance,
  parseLocation,
  formatLocation,
} from 'vrchat-location-parser'

parseLocation('wrld_4432ea9b-729c-46e3-8eaf-846aa0a37fdd:12345~region(eu)')

parseInstance('wrld_4432ea9b-729c-46e3-8eaf-846aa0a37fdd', '12345~region(eu)')

formatLocation({
  worldId: 'wrld_4432ea9b-729c-46e3-8eaf-846aa0a37fdd',
  name: '12345',
  type: 'public',
})

Contributing

Pull requests are welcome! If you have any ideas, feel free to open an issue.

About

A Node.js package to parse VRChat location string

Resources

License

Stars

Watchers

Forks

Packages

No packages published