Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

penneo-js-utils

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

penneo-js-utils

Utilities for integrating browsers with Penneo

  • 0.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Penneo Browser Utilities

Installation

Add the script to your HTML page. You can use the CDN version from https://cdn.jsdelivr.net/gh/penneo/browser-uri-utils/bin/browser-utils.min.js, or host it yourself and target directly to it.

<!-- index.html -->
<script type="text/javascript" src="https://cdn.jsdelivr.net/gh/penneo/browser-uri-utils/bin/browser-utils.min.js"></script>

NPM and Bower installations will be available soon.

Usage

To enhance any link <a> element in a website to integrate Penneo, you only need the link, the data and the script above to be included.

In HTML, create a link with a temporary href.

<a id="penneo-link" href="#">Link to Penneo</a>

In javascript

  1. Create the payload to be sent to the Penneo Desktop application accoding to the URI Schema for the integration.
  2. Select the link element
  3. Enhance the link with the global penneoLink function that the script exposes.
<script type="text/javascript">
    // 1. create data payload
    var data = {name: 'Test Casefile'};

    // 2. select link element
    var link = document.getElementById('penneo-link');

    // 3. enhance link
    penneoLink(data, link); // This will update the href of the link to be compatible with the Penneo Desktop application.
</script>

Full example will be made available soon.

FAQs

Package last updated on 04 Oct 2017

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc