@publiwrite/html-to-epub
Version:
A library to generate EPUB from HTML. Inspired by epub-gen.
85 lines • 2.39 kB
JSON
{
"name": "@publiwrite/html-to-epub",
"version": "0.0.24",
"description": "A library to generate EPUB from HTML. Inspired by epub-gen.",
"license": "MIT",
"repository": "publiwrite/html-to-epub",
"homepage": "https://github.com/publiwrite/html-to-epub#readme",
"bugs": {
"url": "https://github.com/publiwrite/html-to-epub/issues"
},
"publishConfig": {
"access": "public"
},
"engines": {
"node": "20.x || 22.x"
},
"keywords": [
"epub",
"generator",
"ebook",
"html"
],
"type": "module",
"main": "./lib/index.js",
"types": "./lib/index.d.ts",
"exports": {
".": {
"types": "./lib/index.d.ts",
"import": "./lib/index.js"
},
"./package.json": "./package.json"
},
"files": [
"lib/**/*",
"src/**/*",
"templates/**/*"
],
"scripts": {
"freshlock": "rm -rf node_modules/ && rm .yarn/install-state.gz && rm yarn.lock && yarn",
"check-lint": "eslint . --ext .js,.jsx,.ts,.tsx",
"check-format": "prettier --check .",
"check-tsc": "tsc --noEmit",
"lint": "eslint . --fix --ext .js,.jsx,.ts,.tsx",
"format": "prettier --write .",
"build": "tsc",
"prepublishOnly": "npm run build",
"test": "node scripts/install-epubcheck.mjs && vitest run",
"test:no-jar": "vitest run",
"test:watch": "vitest",
"validate": "node scripts/install-epubcheck.mjs && vitest run tests/epub.spec.ts -t 'epubcheck compliance'",
"install:epubcheck": "node scripts/install-epubcheck.mjs"
},
"dependencies": {
"archiver": "^7.0.1",
"axios": "^1.6.8",
"ejs": "^3.1.10",
"entities": "^4.5.0",
"image-size": "^2.0.2",
"mime": "^4.0.3",
"p-limit": "^7.0.0",
"rehype-parse": "^9.0.0",
"rehype-stringify": "^10.0.0",
"slugify": "^1.6.6",
"unified": "^11.0.4",
"unist-util-visit": "^5.0.0",
"uuid": "^10.0.0"
},
"devDependencies": {
"@tsconfig/node22": "^22.0.0",
"@types/adm-zip": "^0.5.7",
"@types/archiver": "^6.0.2",
"@types/ejs": "^3.1.5",
"@types/node": "^22.0.0",
"@types/uuid": "^9.0.8",
"@typescript-eslint/eslint-plugin": "^7.9.0",
"@typescript-eslint/parser": "^7.9.0",
"adm-zip": "^0.5.16",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"prettier": "^3.2.5",
"typescript": "^5.4.5",
"vitest": "^2.1.0"
},
"packageManager": "yarn@4.2.2"
}