bnewbold bd3966555f
@atproto/syntax: merge of @atproto/identifier, uri, and nsid ()
* move nsid package in to identifier

* move uri package in to identifier

* update packages to pull from identifier, not nsid or uri

* rename @atproto/identifier to @atproto/syntax

* update all refs from @atproto/identifer to @atproto/syntax
2023-08-25 10:18:10 -05:00
..
2022-10-18 12:21:59 -05:00

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