
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
asar-lightweight
Advanced tools
asar-lightweight
is a lightweight library to read and write asar archives.
It uses the same format as original asar files. Here you can read archives directly using buffers which means you have a total control over the archive, how you get it and how you store it.
$ npm install asar-lightweight
const asar = require('asar-lightweight'); // CommonJS
import * as asar from 'asar-lightweight'; // ES6
const asar = require('asar-lightweight');
const fs = require('fs');
// Getting the file from the file system (but you can get the Buffer from another source)
const archive = fs.readFileSync('/path/to/archive.asar');
// Now you can read it
// Remember the function is asynchronous
(async () => {
const content = await asar.readArchive(archive);
// Do stuff with `content`
})();
const asar = require('asar-lightweight');
const fs = require('fs');
// Getting the file from the file system (but you can get the Buffer from another source)
const archive = fs.readFileSync('/path/to/archive.asar');
// Now you can read it, edit the data and then write it back
// Remember those functions are asynchronous
(async () => {
const content = await asar.readArchive(archive);
// Do stuff with `content`
const packed = await asar.writeArchive(content);
})();
FAQs
A lightweight version of asar
The npm package asar-lightweight receives a total of 0 weekly downloads. As such, asar-lightweight popularity was classified as not popular.
We found that asar-lightweight 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.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.