update to v0.9.1.

add npm package link
prep for jsr support (I hope)
add favicon
update installation instructions
This commit is contained in:
2026-02-23 00:27:59 -05:00
parent 9dbf7ae796
commit 475fcf6331
36 changed files with 208 additions and 162 deletions

View File

@@ -1,14 +1,2 @@
export default function loadAndParseTwtxtFile(url?: string): Promise<{
lastModified: string;
following: import('./types.ts').Twttr[];
metadata: import('./types.ts').Metadata;
twts: {
content: string;
created: string;
createdUTC: string;
hash: string;
replyHash: string | undefined;
replyNick: string | undefined;
replyUrl: string | undefined;
}[];
}>;
import { Twtxt } from './types.ts';
export default function loadAndParseTwtxtFile(url?: string): Promise<Twtxt>;

View File

@@ -1,18 +1,6 @@
import { Metadata, Twttr } from './types.ts';
import { Twtxt } from './types.ts';
/**
* @param twtxt
* @returns object containing: following, metadata, twts
*/
export default function parseTwtxt(twtxt: string): {
following: Twttr[];
metadata: Metadata;
twts: {
content: string;
created: string;
createdUTC: string;
hash: string;
replyHash: string | undefined;
replyNick: string | undefined;
replyUrl: string | undefined;
}[];
};
export default function parseTwtxt(twtxt: string): Twtxt;

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -26,6 +26,7 @@ export interface Twttr {
}
export interface Twtxt {
following: Twttr[];
lastModified?: string;
metadata: Metadata;
twts: Twt[];
}

View File

@@ -1,2 +1,2 @@
export declare const base32Encode: (payload: string | Uint8Array<ArrayBufferLike>) => any;
export declare const base32Encode: (payload: string | Uint8Array<ArrayBufferLike>) => string;
export declare const getValueOrFirstEntry: (value: unknown | unknown[]) => any;