@yupio/atproto-uri
TypeScript icon, indicating that this package has built-in type declarations

0.0.3 • Public • Published

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

Keywords

none

Install

DownloadsWeekly Downloads

2

Version

0.0.3

License

MIT

Unpacked Size

148 kB

Total Files

17

Last publish

Collaborators

  • yupalan
  • vernonjohnson23