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

chrome-app-api-proxy

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chrome-app-api-proxy - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

14

chrome-app/js/index.js

@@ -9,2 +9,3 @@ 'use strict';

chrome.serial.onReceive.addListener(function(info) {
info.data = toHexString(info.data);
port.postMessage({ type: 'serial', info: info });

@@ -33,2 +34,15 @@ });

});
function toHexString(arrayBuffer) {
var string = '';
var uint8Array = new Uint8Array(arrayBuffer);
for (var i = 0; i < uint8Array.length; i++) {
var hex = uint8Array[i].toString(16);
if (hex.length == 1) {
string += '0';
}
string += hex;
}
return string;
}
});

2

example/js/example.js
/* global ChromeApiProxy */
'use strict';
var extensionId = 'dacgaojeadgpmpmbfoibmncggacokdjd';
var extensionId = 'mncdajaedfblonbkmodofckdialkolgk';
var proxy = new ChromeApiProxy(extensionId);

@@ -6,0 +6,0 @@

{
"name": "chrome-app-api-proxy",
"version": "0.0.1",
"version": "0.0.2",
"homepage": "https://github.com/evanxd/chrome-api-proxy",

@@ -5,0 +5,0 @@ "authors": [

@@ -1,2 +0,2 @@

# Chrome API Proxy
# Chrome App API Proxy
Call Chrome App APIs from a Webpage.
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