A boilerplate for Puppeteer + TypeScript.
I just wanted to use TypeScript, instead of JavaScript, to crawl websites with Puppeteer.
I didn't want to be bothered like 'I need to install puppeteer first, then node-ts, oh I forgot to install tslint...'.
You neither, right ?
Just clone this repo.
- do this:
git clone https://github.com/sosmii/puppeteer-typescript-boilerplate.git
cd puppeteer-typescript-boilerplate
npm i
rm -rf .git
- Write your code in
src/index.ts
npm run start