Skip to main content
This package has been archived, and as such it is read-only.

Create and parse AT Protocol TID format. DEPRECATED: use npm:@atcute/tid instead

This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
This package works with Browsers
JSR Score
100%
Published
a year ago (0.1.1)

atproto-tid

Create and parse AT Protocol TID format.

create(1709512159544000, 24); // -> 3kmtfck6kq22s

now(); // -> 3kmtfb5wxvk2e

parse('3kmtfb5wxvk2e'); // -> { timestamp: 1709512113158000, clockid: 10 }

Add Package

deno add jsr:@mary/atproto-tid

Import symbol

import * as atproto_tid from "@mary/atproto-tid";

---- OR ----

Import directly with a jsr specifier

import * as atproto_tid from "jsr:@mary/atproto-tid";

Add Package

npx jsr add @mary/atproto-tid

Import symbol

import * as atproto_tid from "@mary/atproto-tid";

Add Package

yarn dlx jsr add @mary/atproto-tid

Import symbol

import * as atproto_tid from "@mary/atproto-tid";

Add Package

pnpm dlx jsr add @mary/atproto-tid

Import symbol

import * as atproto_tid from "@mary/atproto-tid";

Add Package

bunx jsr add @mary/atproto-tid

Import symbol

import * as atproto_tid from "@mary/atproto-tid";