Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kseo/bson_objectid
BSON ObjectId implementation in Dart
https://github.com/kseo/bson_objectid
Last synced: 27 days ago
JSON representation
BSON ObjectId implementation in Dart
- Host: GitHub
- URL: https://github.com/kseo/bson_objectid
- Owner: kseo
- License: bsd-3-clause
- Created: 2016-10-05T15:13:38.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2021-10-26T16:27:16.000Z (about 3 years ago)
- Last Synced: 2023-08-20T21:29:18.296Z (about 1 year ago)
- Language: Dart
- Homepage: https://pub.dartlang.org/packages/bson_objectid
- Size: 5.86 KB
- Stars: 1
- Watchers: 2
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# bson_objectid
[![Build Status](https://travis-ci.org/kseo/bson_objectid.svg?branch=master)](https://travis-ci.org/kseo/bson_objectid)
BSON [ObjectId][objectid] implementation in Dart.
This package allows you to create and parse ObjectIds without
a reference to the mongodb or bson packages.[objectid]: https://docs.mongodb.com/manual/reference/method/ObjectId/
## Example
```dart
import 'package:bson_objectid/bson_objectid.dart';main() {
ObjectId id1 = new ObjectId();
print(id1.toHexString());ObjectId id2 = new ObjectId.fromHexString('54495ad94c934721ede76d90');
print(id2.timestamp);
print(id2.machineId);
print(id2.processId);
print(id2.counter);
}
```