diff --git a/README.md b/README.md index f78dd25..931423d 100644 --- a/README.md +++ b/README.md @@ -51,21 +51,6 @@ Read more about Deno permissions [in their manual](https://deno.land/manual/gett *(Package maintainers might consider adding a `readable-sandbox` executable which will run `readable` with restrictions)* -### Bun - -[Bun](https://bun.sh/) is an experimental JavaScript runtime which is supposedly a faster alternative to Node.js. `readability-cli` has not been thoroughly tested with it, but you can try to run: - -```sh -bun install readability-cli -bun run readable -``` - -...or you can clone this repository and run - -```sh -bun run ./index.js -``` - ### Arch Linux Arch Linux users may use the "official" AUR packages: diff --git a/common.mjs b/common.mjs index 301c5ce..0605665 100644 --- a/common.mjs +++ b/common.mjs @@ -131,7 +131,8 @@ export default async function( }) .option("completion", { type: "boolean", - desc: __`Print script for bash/zsh completion` + desc: __`Print script for bash/zsh completion`, + hidden: typeof Deno !== "undefined" }) .option("base", { alias: 'b', diff --git a/package-lock.json b/package-lock.json index c329cce..392c13a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "readability-cli", - "version": "2.4.2", + "version": "2.4.4", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "readability-cli", - "version": "2.4.2", + "version": "2.4.4", "license": "GPL-3.0-only", "dependencies": { "@mozilla/readability": "^0.4.1", diff --git a/package.json b/package.json index 83fa2c9..aa582c3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "readability-cli", - "version": "2.4.3", + "version": "2.4.4", "description": "Firefox Reader Mode in your terminal - get useful text from a web page using Mozilla's Readability library", "main": "index.js", "bin": { diff --git a/readability-cli.1 b/readability-cli.1 index b63573f..3b85e10 100644 --- a/readability-cli.1 +++ b/readability-cli.1 @@ -1,4 +1,4 @@ -.TH "READABILITY\-CLI" "1" "January 2023" "v2.4.3" +.TH "READABILITY\-CLI" "1" "January 2023" "v2.4.4" .SH "NAME" \fBreadability-cli\fR \- get useful text from a web page .SH SYNOPSYS @@ -133,7 +133,7 @@ Set custom user agent string\. .RS 1 .IP \(bu 2 -Print \fBreadability\-cli\fR and Node\.js version, then exit\. +Print \fBreadability\-cli\fR and Node\.js/Deno version, then exit\. .RE .P @@ -141,7 +141,7 @@ Print \fBreadability\-cli\fR and Node\.js version, then exit\. .RS 1 .IP \(bu 2 -Print script for shell completion, and exit\. Provides Zsh completion if the current shell is zsh, otherwise provides Bash completion\. +Print script for shell completion, and exit\. Provides Zsh completion if the current shell is zsh, otherwise provides Bash completion\. Currently broken when using Deno\. .RE .SS Properties diff --git a/readability-cli.1.md b/readability-cli.1.md index b8f5734..c40f9ef 100644 --- a/readability-cli.1.md +++ b/readability-cli.1.md @@ -74,11 +74,11 @@ The *SOURCE* can be a URL, a file, or '-' for standard input. `-V`, `--version` -* Print **readability-cli** and Node.js version, then exit. +* Print **readability-cli** and Node.js/Deno version, then exit. `--completion` -* Print script for shell completion, and exit. Provides Zsh completion if the current shell is zsh, otherwise provides Bash completion. +* Print script for shell completion, and exit. Provides Zsh completion if the current shell is zsh, otherwise provides Bash completion. Currently broken when using Deno. ### Properties diff --git a/readable.ts b/readable.ts index 5f81a24..2920c11 100644 --- a/readable.ts +++ b/readable.ts @@ -1,6 +1,6 @@ -#!/usr/bin/env -S deno run --allow-net --allow-read --allow-write --allow-env --no-check -- +#!/usr/bin/env -S deno run --allow-net --allow-read --allow-write --allow-env=HTTPS_PROXY,LC_ALL,LC_MESSAGES,LANG,LANGUAGE --no-prompt --no-check -- -const version = "2.4.3" +const version = "2.4.4" import * as path from "https://deno.land/std@0.173.0/path/mod.ts"