Commit 571b971c authored by james's avatar james

[ADD] init

parent bff7624c
console.log('Hello World'); const puppeteer = require('puppeteer');
\ No newline at end of file
(async () => {
const browser = await puppeteer.launch({
headless: false // 無外殼的 Chrome,有更佳的效能
});
const page = await browser.newPage();
await page.goto('https://google.com');
await page.screenshot({ path: 'example.png' });
await browser.close();
})();
\ No newline at end of file
...@@ -12,5 +12,8 @@ ...@@ -12,5 +12,8 @@
}, },
"keywords": [], "keywords": [],
"author": "", "author": "",
"license": "ISC" "license": "ISC",
"dependencies": {
"puppeteer": "^14.1.1"
}
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment