This package has been deprecated

Author message:

This package is now deprecated. Please use @atproto/syntax, which provides the same interfaces.

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

0.1.1 • 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

Readme

Keywords

none

Package Sidebar

Install

npm i @atproto/uri

Weekly Downloads

10,280

Version

0.1.1

License

MIT

Unpacked Size

39.4 kB

Total Files

13

Last publish

Collaborators

  • devinivy
  • dholms
  • estrattonbailey
  • pfrazee