bson_codec 0.1.0 bson_codec: ^0.1.0 copied to clipboard
A BSDON codec for Dart.
example/bson_codec_example.dart
// Copyright (c) 2016, Kwang Yul Seo. All rights reserved. Use of this source code
// is governed by a BSD-style license that can be found in the LICENSE file.
import 'dart:io';
import 'package:bson_codec/bson_codec.dart';
main() {
List<int> bytes = new File('sample.bson').readAsBytesSync();
final o = BSON.decode(bytes);
print(o);
}