~timharek/deno-linkding

Access your Linkding's API with Deno.
chore: Update to new format
feat: Add auto mirror to GitHub

clone

read-only
https://git.sr.ht/~timharek/deno-linkding
read/write
git@git.sr.ht:~timharek/deno-linkding

You can also use your local clone with git send-email.

Latest version sourcehut GitHub mirror

#deno-linkding

Access your Linkding instance with Deno. This module has both a mod.ts and a CLI.

#Usage

Requires environment variables for both LINKDING_URL and LINKDING_API.

#Example for getting all bookmarks

import { listBookmarks } from "https://deno.land/x/linkding/mod.ts";

const allBookmarks = await listBookmarks({ all: true });
// do what you need to do with the bookmarks.

#Example for single bookmark

import { getBookmark } from "https://deno.land/x/linkding/mod.ts";

const bookmark = await getBookmark(10);
// do what you need to do with the bookmark.

#CLI

#Installation

deno install --allow-env --allow-read --allow-net \
  -n linkding https://deno.land/x/linkding/src/cli.ts

#Usage

# Returns all bookmarks
linkding list
# Returns single bookmark with id `10`
linkding list 10
# Returns all tags
linkding tag
# Returns single tag with id `10`
linkding tag 10
# Returns all bookmarks as json
linkding list --json

# All available commands and flags
linkding -h