bep53 1.0.0 copy "bep53: ^1.0.0" to clipboard
bep53: ^1.0.0 copied to clipboard

Parse and compose Magnet URI extension (BEP53) ranges.

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']
0
likes
110
pub points
0%
popularity

Publisher

unverified uploader

Parse and compose Magnet URI extension (BEP53) ranges.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on bep53