↑ 80
File Viewer plugin for Capacitor ⚡️
HEALTH 92 / Healthy
File Viewer plugin for Capacitor ⚡️
// momentum
// why it's here
// how to help
// readme
The FileViewer API provides mechanisms for opening files and previewing media. Not available on web.
·
·
·
npm install @capacitor/file-viewer
npx cap sync
import { FileViewer } from "@capacitor/file-viewer";
// can use a plugin like @capacitor/filesystem to get the full path to the file
const openDocument = async () => {
await FileViewer.openDocumentFromLocalPath({
path: "path/to/file.pdf"
});
};
// ios-specific
const previewMedia = async () => {
await FileViewer.previewMediaContentFromUrl({
path: "https://url_hosting_media/file.mp4"
});
}
Check the plugin’s api here.
Health score
Is the project alive and maintained right now? A 0–100 pulse recomputed nightly from commit recency, rhythm, how fast issues close, and how quickly PRs get merged.
How it's calculatedUndervalued score
Activity relative to attention (stars + watchers). Above 50 means a lot of activity for a project its size. Recomputed nightly from commit velocity, contributor effort, issue resolution, fork utility, release cadence, and project maturity — divided by a logarithmic reach factor.
How it's calculated