Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
transmission-native
Advanced tools
Native bindings for libtransmission.
The npm package offers prebuilt binaries only for Linux x64 for now. Please refer to development for other systems.
const Transmission = require('transmission-native')
// Create a transmission instance with config folder and app name
const tr = new Transmission('./transmission', 'transmission')
const response = await tr.request({ method: 'session-get' })
// Add a new torrent
const message = {
method: 'torrent-add',
arguments: {
filename: 'https://webtorrent.io/torrents/tears-of-steel.torrent'
}
}
const reponse = await tr.request(message)
console.log(response)
// Save settings
tr.saveSettings()
// Later, when the process should be stopped, close the instance before
tr.close()
Please refer to transmission's rpc-spec.md to find what methods and arguments are expected.
tr = new Transmission(configDir, appName)
Create a transmission instance with a specific configuration folder and application name.
configDir
is the path where settings and state of the transmission process will be loaded and stored.
tr.request(message)
Make a request to the transmission instance.
message
is an object expected by transmissions's rpc-spec.md.
const message = { method: 'session-get' }
const reponse = await tr.request(message)
console.log(response)
// or as a callback
tr.request(message, (err, response) => {
if (err) throw err
console.log(response)
})
tr.saveSettings()
Save transmission settings.
tr.close()
Save settings and close the session.
You'll need to install required build tools and libraries for your platform in order to compile libtransmission:
sudo dnf install cmake gcc-c++ libcurl-devel openssl-devel
vcpkg install curl --triplet=x64-windows-static
vcpkg install openssl --triplet=x64-windows
npm run fetch-deps
# For Windows you need to set VCPKG_INSTALLATION_ROOT env variable
# $Env:VCPKG_INSTALLATION_ROOT="PATH_TO_VCPKG"
npm run build-transmission
npm install
npm test # optional
GPL-3.0
FAQs
transmission-native
The npm package transmission-native receives a total of 0 weekly downloads. As such, transmission-native popularity was classified as not popular.
We found that transmission-native demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.