Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
then-chrome
Advanced tools
Promise-based chrome api.
var thenChrome = require('then-chrome');
// get tabs list
thenChrome.tabs.query({currentWindow: true})
.then(console.log); // tabs list
// get all cookies by name
thenChrome.cookies.getAll({name: 'cookieName'})
.then(console.log); // cookie list
// detect language by tab
thenChrome.tabs.detectLanguage(10)
.then(console.log); // en
.catch(console.warn); // catch chrome.runtime.lastError value
Sync methods are wrapped too
var thenChrome = require('then-chrome');
thenChrome.i18n.getMessage('title')
.then(console.log); // 'extension title'
There is native Promise inside then-chrome by default, but you can use every Thenable lib, compatible with Promises/A+ standart.
var Q = require('q');
var BlueBird = require('bluebird');
var create = require('then-chrome/out/api');
var thenChromeQ = create(Q.Promise); // then-chrome with Q promise inside
var thenChromeBB = create(BlueBird); // then-chrome with bluebird promise inside
npm install then-chrome
or
git clone https://github.com/acvetkov/then-chrome.git
cd then-chrome
npm install
npm run build
npm test
FAQs
Promise wrapper for chrome api
The npm package then-chrome receives a total of 7 weekly downloads. As such, then-chrome popularity was classified as not popular.
We found that then-chrome demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.