1
0
mirror of https://github.com/lencx/ChatGPT.git synced 2024-10-01 01:06:13 -04:00

Merge pull request #10 from lencx/doc

This commit is contained in:
lencx 2022-12-10 12:22:20 +08:00 committed by GitHub
commit 8339dc281c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

8
scripts/download.js vendored
View File

@ -1,12 +1,8 @@
const fs = require('fs');
const path = require('path');
const argv = process.argv.slice(2);
console.log('«6» /ChatGPT/scripts/download.js ~> ', argv[0]);
function init() {
async function init() {
const content = fs.readFileSync('README.md', 'utf8').split('\n');
const startRe = /<!-- download start -->/;
const endRe = /<!-- download end -->/;
@ -27,4 +23,4 @@ function init() {
fs.writeFileSync('README.md', content.join('\n'), 'utf8');
}
init();
init().catch(console.error);