
Security News
The Code You Didn't Write Is Still Yours to Defend
AI agents are pulling packages into environments no scanner is watching, creating exposure before security teams can see it.
@geeboo/reader
Advanced tools
pc阅读器,基于geeboo/epub支持解密,集成阅读器的基本功能。
v1.0.11
v1.0.10
v1.0.9
v1.0.8
780的问题v1.0.7
v1.0.5
v1.0.4
imgGuide图片不展示.guide-box padding-bittom:10pxv1.0.2
:::preview 阅读器 || 阅读电子书组件预览
demo-preview=./demo/read.vue
:::
| 属性名 | 类型 | 说明 |
|---|---|---|
| config | Object | 配置 |
| config.url | String/file | 打开的地址 支持file blob ,也支持远程地址,注意远程地址需要支持跨域 |
| deviceId | String | 设备id |
| deviceModel | String | 设备模式 |
| treeNode | Element Ui/ Element PLus | 传入element ui 的tree 或 elemnt plus 的tree 这里是为了对vue2 和vue3的兼容处理 |
| 属性名 | 说明 |
|---|---|
| Book | epubjs Book 实例 |
| CFI | CFI 操作实例,也是作为CPA 的转换方法 |
会在epub被加载完成后生成 *换算方案 CPA 为客户端方案,换算过去的原因就是为了和客户端一致
| 属性名 | 参数 | 说明 |
|---|---|---|
| getCurrent | - | 获得当前位置的 CFI 和 CPA | ||
gotoCPA | 章,段,字 | 根据CPA 跳转 path: [cfi],index: body的索引,paraIndex: 段落,atom:字索引,textContent:内容,dom: 段落节点 | ||
getCPAIFrame | 章,段,字 | 获得CPA 对应的位置信息 path: [cfi],index: body的索引,paraIndex: 段落,atom:字索引,textContent:内容,dom: 段落节点 | ||
| getParas | 节点 或下标 |获得元素信息 |
epubcfi(/6/2!/4/1:5)
/6/2 章节cfi| 字符串 | 说明 |
|---|---|
| epubcfi | EPUB Canonical Fragment Identifier,EPUB规范中定义的一种标准化的片段标识符 |
| /6 | 固定编号 | |
/6/2 | 章节标识,对应 book.spine.items 的cfiBase |
FAQs
vue2 && vue3
The npm package @geeboo/reader receives a total of 29 weekly downloads. As such, @geeboo/reader popularity was classified as not popular.
We found that @geeboo/reader demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
AI agents are pulling packages into environments no scanner is watching, creating exposure before security teams can see it.

Security News
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.

Product
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.