Skip to main content

Create and parse AT Protocol TID format

Works with
This package works with Bun
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Browsers
JSR Score
100%
Published
3 months 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 @mary/atproto-tid

Import symbol

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

Add Package

npx jsr add @mary/atproto-tid

Import symbol

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

Add Package

yarn dlx jsr add @mary/atproto-tid

Import symbol

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

Add Package

pnpm dlx jsr add @mary/atproto-tid

Import symbol

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

Add Package

bunx jsr add @mary/atproto-tid

Import symbol

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