0.1.1 • Published 8 months ago

@atproto/uri v0.1.1

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

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