@yupio/atproto-uri
v0.0.3
Published
## Usage
Downloads
4
Readme
ATP URI API
Usage
import { AtUri } from '@atproto/uri'
const uri = new AtUri('at://bob.com/com.example.post/1234')
uri.protocol // => 'at:'
uri.origin // => 'at://bob.com'
uri.hostname // => 'bob.com'
uri.collection // => 'com.example.post'
uri.rkey // => '1234'
License
MIT