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:
commit
8339dc281c
8
scripts/download.js
vendored
8
scripts/download.js
vendored
@ -1,12 +1,8 @@
|
|||||||
const fs = require('fs');
|
const fs = require('fs');
|
||||||
const path = require('path');
|
|
||||||
|
|
||||||
const argv = process.argv.slice(2);
|
const argv = process.argv.slice(2);
|
||||||
|
|
||||||
console.log('«6» /ChatGPT/scripts/download.js ~> ', argv[0]);
|
async function init() {
|
||||||
|
|
||||||
|
|
||||||
function init() {
|
|
||||||
const content = fs.readFileSync('README.md', 'utf8').split('\n');
|
const content = fs.readFileSync('README.md', 'utf8').split('\n');
|
||||||
const startRe = /<!-- download start -->/;
|
const startRe = /<!-- download start -->/;
|
||||||
const endRe = /<!-- download end -->/;
|
const endRe = /<!-- download end -->/;
|
||||||
@ -27,4 +23,4 @@ function init() {
|
|||||||
fs.writeFileSync('README.md', content.join('\n'), 'utf8');
|
fs.writeFileSync('README.md', content.join('\n'), 'utf8');
|
||||||
}
|
}
|
||||||
|
|
||||||
init();
|
init().catch(console.error);
|
Loading…
Reference in New Issue
Block a user