datapipe 0.1.4 copy "datapipe: ^0.1.4" to clipboard
datapipe: ^0.1.4 copied to clipboard

Universal data pump. It converts data of any format into data of another format.

example/main.dart

// ignore_for_file: avoid_print, unnecessary_statements

import 'dart:io';

import 'package:datapipe/datapipe.dart';

void main() {
  // pumping binary File to List<int>
  {
    final file = File('./example/1.webp');
    final r = file.o | <int>[].o;
    print(r);
  }

  // pumping binary File to Base64String
  {
    final file = File('./example/1.webp');
    final r = file.o | <int>[].o | const Base64String().o;
    print(r);
  }

  // pumping binary File to File with List<int>
  {
    final input = File('./example/1.webp');
    final output = File('./_output/1.json');
    input.o | <int>[].o | output.o;
    // look at [output] file
  }
}
0
likes
160
pub points
0%
popularity

Publisher

verified publishersyrokomskyi.com

Universal data pump. It converts data of any format into data of another format.

Repository (GitHub)
View/report issues
Contributing

Topics

#converter #data #image #formatter #json

Documentation

API reference

License

MIT (license)

Dependencies

meta, path

More

Packages that depend on datapipe