![Maven Central Adds Sigstore Signature Validation](https://cdn.sanity.io/images/cgdhsj6q/production/7da3bc8a946cfb5df15d7fcf49767faedc72b483-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
A full-typing wrapper around aria2`, `The next generation download utility`.
This is a fork of hydrati/libaria2-ts.
Node.js TypeScript library for aria2.
libaria2 uses Aria2 JSON-RPC Interface to control it.
Install this package
npm install libaria2
Start aria2 with rpc, example
aria2c --enable-rpc --rpc-listen-all=true --rpc-allow-origin-all
import { WebSocket as Aria2WebSocket } from "libaria2-ts";
const aria2 = new Aria2WebSocket({
host: 'localhost',
port: 6800
});
import { Http as Aria2Http } from "libaria2-ts";
const aria2 = new Aria2Http({
host: 'localhost',
port: 6800
});
Example options
{
host: 'localhost',
port: 6800,
path: '/jsonrpc',
auth: {
secret: 'hello'
}
}
const version = await aria2.getVersion();
/*
* Output:
* { version: '...', enabledFeatues: [...] }
*/
const resl = await aria2.system.multicall(
{ methodName: 'aria2.getVersion', params: [] },
{ methodName: 'aria2.addUri', params: ['http://example.com/qwer.zip'] }
);
/*
* Output:
* Array<Promise<...>>
*/
// or:
aria2.on('aria2.onDownloadStart', (event: IAria2NotificationEvent) => {
console.log(`Download ${event.gid} Started`);
});
// or:
aria2.onceDownloadStart().then((event: IAria2NotificationEvent) => {
console.log(`Download ${event.gid} Started`);
});
await aria2.closeConnection();
More methods, see Aria2ClientBaseClient
MIT License © 2021 Oxygen
MIT License © 2023 XLor
FAQs
A full-typing wrapper around aria2`, `The next generation download utility`.
We found that libaria2 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
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.