Socket
Socket
Sign inDemoInstall

svelte-pdfjs

Package Overview
Dependencies
85
Maintainers
1
Versions
39
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.3.4 to 0.3.5-alpha.0

.eslintrc.cjs

22

package.json
{
"name": "svelte-pdfjs",
"version": "0.3.4",
"version": "0.3.5-alpha.0",
"devDependencies": {

@@ -25,15 +25,13 @@ "@sveltejs/adapter-netlify": "^1.0.0-next.44",

"type": "module",
"exports": {
"./package.json": "./package.json",
".": "./index.js",
"./PDFViewer/Document.svelte": "./PDFViewer/Document.svelte",
"./PDFViewer/Page.svelte": "./PDFViewer/Page.svelte",
"./PDFViewer/PageInternals/AnnotLayer.svelte": "./PDFViewer/PageInternals/AnnotLayer.svelte",
"./PDFViewer/PageInternals/PageCanvas.svelte": "./PDFViewer/PageInternals/PageCanvas.svelte",
"./PDFViewer/PageInternals/PageSVG.svelte": "./PDFViewer/PageInternals/PageSVG.svelte",
"./PDFViewer/PageInternals/TextLayer.svelte": "./PDFViewer/PageInternals/TextLayer.svelte",
"./utils/target_dimension": "./utils/target_dimension.js"
"scripts": {
"dev": "svelte-kit dev",
"build": "svelte-kit build",
"preview": "svelte-kit preview",
"check": "svelte-check --tsconfig ./tsconfig.json",
"check:watch": "svelte-check --tsconfig ./tsconfig.json --watch",
"lint": "prettier --ignore-path .prettierignore --check --plugin-search-dir=. . && eslint --ignore-path .gitignore .",
"format": "prettier --ignore-path .prettierignore --write --plugin-search-dir=. .",
"package": "svelte-kit package"
},
"svelte": "./index.js",
"readme": "## svelte-pdfjs\n\nA wrapper around Mozilla's PDFJS renderer. Only cares about loading and showing the PDF and nothing else, all the fancy stuff such as styling the viewer is left up to the consumer. Still in early stages so feel free to create an issue or a PR for any bugs that you find, any improvements or feature requests.\n\n## Usage\n\nSee [src/routes/index.svelte](src/routes/index.svelte) \nDemo: [Netlify](https://svelte-pdfjs.netlify.app)\n\n## SvelteKit\n\nIt's compatible with SvelteKit, just import the component and use it in a `{#if browser}` you'll have to install pdfjs-dist as a dependency.\n\n## TODOs:\n\n- [x] Text layer rendering\n- [x] SvelteKit compatibility\n- [ ] Think of a better name for the `zoomLevel` prop on `Page`\n- [ ] SVG renderer\n- [ ] Annotation layer\n- [ ] Error handling\n- [ ] Expose more stuff\n\n## License\n\n[MIT](LICENSE)\n"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc