cross_storage 1.0.1 copy "cross_storage: ^1.0.1" to clipboard
cross_storage: ^1.0.1 copied to clipboard

JsInterop for zendesk/cross-storage

Dart wrapper for zendesk/cross_storage #

this is wrapper for https://github.com/zendesk/cross-storage/

installation: #

add this to your dependencies

dependencies:
  cross_storage: ^1.0.0

import #

import 'package:cross_storage/cross_storage.dart';

usage #

void main() async {
  final crossStorage = CrossStorageClient('https://example.com');

  await crossStorage.connect();
  print(await crossStorage.getKey('newKey'));
}


issues #

  1. Hub part doesnt work, it would require of forking the hub.js because there is check if origin is instanceof RegExp, and dart have diffrent RegExp for js.
0
likes
30
pub points
0%
popularity

Publisher

unverified uploader

JsInterop for zendesk/cross-storage

Repository (GitHub)
View/report issues

License

BSD-2-Clause (LICENSE)

More

Packages that depend on cross_storage