New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

chrx

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

chrx

CommonJS modules for Chrome Extensions Developers

  • 0.0.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-80%
Maintainers
1
Weekly downloads
 
Created
Source

chrx

chrx is a collection of CommonJS modules for developing Chrome Extensions. The chrome.* APIs provided in Chrome are powerful, but their complexity can make simple tasks rather difficult. This project is an attempt to collect some common abstractions and distribute them via npm.

API

tabs

window

tabs

getActive([options][, callback])

Gets the active tab in the active window.

chrx.tabs.getActive(function(err, tab){})
options
  • protocol

executeScripts(options[, callback])

Executes content scripts in a tab.

chrx.tabs.executeScripts({
    tab: tab,
    scripts: ['underscore.js', 'jquery.js']
}, function(err, tab){})
options
  • tab (required)
  • scripts (required)
  • runAt

executeScriptsInActive(options[, callback])

Executes content scripts in the active tab.

chrx.tabs.executeScriptsInActive({
    scripts: ['underscore.js', 'jquery.js']
}, function(err, tab){})
options
  • scripts (required)
  • runAt

getActive([callback])

Gets the active window.

chrx.window.getActive(function(err, win){})

License

MIT License, see LICENSE for details.

Keywords

FAQs

Package last updated on 16 Aug 2013

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