Skip to main content
Home
This package has been archived, and as such it is read-only.
Works with
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 Score100%
Downloads96/wk
Published2 years ago (0.1.1)

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

atproto-tid

Create and parse AT Protocol TID format.

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

now(); // -> 3kmtfb5wxvk2e

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

Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

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

pnpm i jsr:@mary/atproto-tid
or (using pnpm 10.8 or older)
pnpm dlx jsr add @mary/atproto-tid

Import symbol

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

Add Package

yarn add jsr:@mary/atproto-tid
or (using Yarn 4.8 or older)
yarn dlx jsr add @mary/atproto-tid

Import symbol

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

Add Package

vlt install jsr:@mary/atproto-tid

Import symbol

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

Add Package

npx 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";