You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@edwardsharp/pee-dee-eff

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@edwardsharp/pee-dee-eff

just a lil' pdf -> webp converter & carousel web-component viewer

0.0.1
latest
Source
npmnpm
Version published
Weekly downloads
6
-87.23%
Maintainers
1
Weekly downloads
 
Created
Source

PEE-DEE-EFF

just a lil' pdf -> webp converter & carousel web-component for viewing!

P E E  D E E  E F F

quickstart

open index.html in your browser! get a handle on the different view options by fiddle'n with the controlz.

gen your own

./pdf2webp.sh path/to/some.pdf

now there should be .webp files in gen/ (one for each page of yr pdf).

edit really-simple.html and change the base-path="gen/whatever-folder-of-webp-images"

note: .webp images need to follow format page-000.web (where 000 is the page number).

if u wanna use this, copy pee-dee-eff.js to where ever you host yr other stuff. then on whatever page include the web-component tag and a <script /> (u could just copy/paste pee-dee-eff.js and inline it in a <script> on yr page) like:

<pee-dee-eff
    base-path="example/undoinganddoing"
    pages-per-view="4"
    direction="horizontal"
    loop="true"
    first-last-single="false"
    background="black"
>
</pee-dee-eff>

<script src="pee-dee-eff.js"></script>

web component props

attributetypeoptions / example valuesdefaultrequireddescription
base-pathstring"./examples/undoinganddoing""."yesdirectory where image files like page-000.webp, page-001.webp, etc. are loaded from.
pages-per-viewnumber1, 2, 4, 6, etc.2nonumber of images shown per slide. determines the grid layout automatically.
directionstring"horizontal", "vertical""horizontal"nochooses between swipe-to-slide and scroll-down-to-browse modes.
loopboolean"true"falsenowhether to loop back to the first slide after the last one, and vice versa.
first-last-singleboolean"true"falsenonot currently used in logic, but may be intended for showing single pages at start/end.
backgroundstring"white", "#eeddee", "black""white"nobackground color of each image cell in the grid.

pwa && cache

  • web app Mmanifest for "Add to Home Screen" support
  • offline-first image loading with network fallback
  • background caching of images as they load

generating icons & favicon

a lil' icon generator:

  • open generate-icons.html
  • open generate-favicon.html
  • download png and favicon! 🥹

made with 💖 in nyc

FAQs

Package last updated on 10 Jul 2025

Did you know?

Socket

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.

Install

Related posts