rewrite puppeteer in typescript

This commit is contained in:
Hongbo Wu
2024-01-15 23:32:26 +08:00
parent 51e586ed3d
commit cd3402b98a
13 changed files with 678 additions and 330 deletions

View File

@ -2,10 +2,14 @@
"name": "@omnivore/puppeteer-parse",
"version": "1.0.0",
"description": "Accepts URL of the article and parses its content",
"main": "index.js",
"main": "build/src/index.js",
"files": [
"build/src"
],
"dependencies": {
"@omnivore/content-handler": "1.0.0",
"@omnivore/readability": "1.0.0",
"axios": "^1.4.0",
"crypto": "^1.0.1",
"dompurify": "^2.4.1",
"linkedom": "^0.14.9",
@ -20,7 +24,10 @@
"mocha": "^10.0.0"
},
"scripts": {
"test": "mocha test/*.js"
"test": "yarn mocha -r ts-node/register --config mocha-config.json",
"test:typecheck": "tsc --noEmit",
"lint": "eslint src --ext ts,js,tsx,jsx",
"build": "tsc"
},
"volta": {
"extends": "../../package.json"