Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
* text eol=lf
*.png binary
61 changes: 57 additions & 4 deletions cli-manifest.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,62 @@
[
{
"site": "web",
"name": "fetch",
"description": "Fetch a URL, escalating to a real browser only if plain HTTP is blocked",
"access": "read",
"strategy": "public",
"browser": false,
"args": [
{
"name": "url",
"type": "string",
"required": true,
"help": "Any http or https URL"
},
{
"name": "timeout",
"type": "int",
"default": 30,
"required": false,
"help": "Total budget in seconds across every tier"
},
{
"name": "max-chars",
"type": "int",
"default": 50000,
"required": false,
"help": "Truncate content at this many characters (0 disables)"
},
{
"name": "allow-private",
"type": "boolean",
"default": false,
"required": false,
"help": "Allow fetching private/loopback addresses"
},
{
"name": "browser",
"type": "boolean",
"default": true,
"required": false,
"help": "Escalate to a real browser when the site blocks plain HTTP (--browser false to stop at HTTP)"
},
{
"name": "wait",
"type": "int",
"default": 3,
"required": false,
"help": "Seconds to wait after page load when escalating to the browser"
}
],
"defaultFormat": "md",
"type": "js",
"packageExport": "./fetch/command"
},
{
"site": "web",
"name": "fetch-browser",
"description": "Fetch any web page and export as Markdown",
"description": "Fetch any web page in a real browser and export as Markdown",
"access": "read",
"strategy": "cookie",
"browser": true,
Expand Down Expand Up @@ -88,8 +142,7 @@
"saved"
],
"type": "js",
"modulePath": "web/fetch-browser.js",
"sourceFile": "web/fetch-browser.js",
"navigateBefore": false
"navigateBefore": false,
"packageExport": "./fetch/command"
}
]
10 changes: 0 additions & 10 deletions clis/web/README.md

This file was deleted.

1 change: 0 additions & 1 deletion clis/web/fetch.js

This file was deleted.

Loading