Closed laiso closed 4 months ago
README.md
npm install
npm start -- <main_url> [url_pattern]
npx laiso/site2pdf <main_url> [url_pattern]
https://github.com/laiso/site2pdf/blob/2a3a965428f192abecc54fa92e9f343a817c0c07/README.md?plain=1#L11-L16
bin/site2pdf.js
child_process
npx tsx index.ts ...args
package.json
"bin": { "site2pdf": "bin/site2pdf.js" }
These changes simplify the installation and usage of the tool, making it executable directly as a command-line tool.
README.md
npm install
command. - Changednpm start -- <main_url> [url_pattern]
command tonpx laiso/site2pdf <main_url> [url_pattern]
.https://github.com/laiso/site2pdf/blob/2a3a965428f192abecc54fa92e9f343a817c0c07/README.md?plain=1#L11-L16
bin/site2pdf.js
child_process
module to executenpx tsx index.ts ...args
.package.json
"bin": { "site2pdf": "bin/site2pdf.js" }
to enable the tool to be executed as a command-line tool.These changes simplify the installation and usage of the tool, making it executable directly as a command-line tool.