Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD

bep53-range

parse and compose magnet uri extension (bep53) ranges.

dart port of https://github.com/webtorrent/bep53-range

usage

parse

parse magnet uri extension (bep53) range and return all included values.

import 'package:bep53/bep53.dart';

final range = ['1-3', '6', '11-13']

const values = bep53.parse(range)
print(values) // [1, 2, 3, 6, 11, 12, 13]

compose

compose magnet uri extension (bep53) range from all included values.

import 'package:bep53/bep53.dart';

const values = [1, 2, 3, 6, 11, 12, 13]

const range = bep53.compose(values)
print(range) // ['1-3', '6', '11-13']

Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD

Top