metalink.js

Usage

Download

Latest

HTML

<script src="https://jc3213.github.io/metalink.js/metalink.js"></script>

TamperMonkey

// @require https://jc3213.github.io/metalink.js/metalink.js

Syntax

let file1 = {url: {url: 'https://jc3213.github.io/metalink.js/metalink.js', location: 'en'}, version: '0.1.0'};
let file2 = {url: 'https://github.com/jc3213/metalink.js/archive/refs/heads/main.zip', name: 'metalink.js_by_@jc3213.zip'}
let metalink = new Metalink(file1, file2);

file

url required

name optional

size optional

version optional

language optional

hash optional

metaurl optional

Method

save

metalink.save(filename);