npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@srikant-kumar/cordova-plugin-file-viewer

v1.1.2

Published

CordovaFileViewer is a Cordova plugin enabling seamless integration of file viewing functionality within Cordova applications on Android platforms. With this plugin, developers can effortlessly open PDF and image files from URLs using the default viewer a

Downloads

7

Readme

Cordova Plugin File Viewer

CordovaFileViewer plugin enables effortless viewing of PDF and image files in Cordova apps on Android. It seamlessly opens files from URLs using default viewer apps, enhancing user experience.

Description

Cordova Plugin File Viewer is a versatile tool designed to seamlessly integrate file viewing functionality into Cordova applications, specifically tailored for Android platforms. With this plugin, developers can empower their apps to effortlessly display PDF and image files sourced from URLs, leveraging the default viewer apps available on users' devices. This streamlined approach significantly enhances the user experience, allowing for quick and intuitive access to external files without the need for manual downloads or complicated configurations.

Key Features:

Effortless File Viewing: Cordova Plugin File Viewer simplifies the process of opening PDF and image files within Cordova applications, eliminating the need for cumbersome manual handling.

  1. Seamless Integration: The plugin seamlessly integrates with Cordova projects, ensuring smooth operation and compatibility with existing development environments.

  2. Automatic Detection: It automatically detects the file type based on the provided URL, allowing for dynamic handling of PDF and image files without requiring explicit configuration.

  3. Default Viewer Apps: Leveraging the default viewer apps available on Android devices, the plugin ensures a consistent and familiar viewing experience for users.

  4. Enhanced User Experience: By enabling users to view files directly from URLs, the plugin enhances the overall user experience, reducing friction and improving app usability.

  5. Simple API: With a straightforward API interface, developers can easily incorporate file viewing functionality into their Cordova applications with minimal effort.

Installation using GIT

cordova plugin add https://github.com/srikant-kumar/cordova-plugin-file-viewer.git

Installation using CORDOVA

cordova plugin add @srikant-kumar/cordova-plugin-file-viewer

Usage

cordova.plugins.fileViewer.openFile(
  file_url,
  successCallback,
  errorCallback
);

function successCallback(response) {
  console.log("File opened successfully:", response);
}

function errorCallback(error) {
  console.error("Error opening file:", error);
}

Author

Developed by Srikant Kumar, this plugin aims to streamline file viewing functionality within Cordova applications, enhancing usability and user satisfaction.