chrome.dart

Provide Dart interop with chrome.* APIs for Chrome Packaged Apps

  • 所有者: dart-gde/chrome.dart
  • 平台:
  • 许可证: Other
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

chrome.dart

Build Status

An library for accessing the Chrome APIs in a packaged app or extension.

Installing

Add this to your package's pubspec.yaml file:

dependencies:
  chrome: any

Using the library

import 'package:chrome/chrome_app.dart' as chrome;

void main() {
  chrome.runtime.getPlatformInfo().then((Map m) {
    print(m.toString());
  });
}

Also, see the FAQ.

In your pubspec.yaml

In order to build your app with pub build, you'll need to tell it to select
the CSP compliant output of dart2js. To do that, add these lines:

transformers:
- chrome

to your pubspec.yaml file.

Documentation

Documentation is available at:

Breaking Changes

For version 0.5.0, we removed the older chrome.socket API in favor of the new
chrome.sockets API. In order to continue using the older API, you can
reference it directly via an import:

import 'package:chrome/gen/socket.dart';

主要指标

概览
名称与所有者dart-gde/chrome.dart
主编程语言Dart
编程语言JavaScript (语言数: 5)
平台
许可证Other
所有者活动
创建于2012-12-17 21:19:48
推送于2019-06-22 01:30:11
最后一次提交2018-05-03 14:43:50
发布数24
最新版本名称v0.9.31 (发布于 )
第一版名称v0.1.1 (发布于 2013-05-28 09:53:30)
用户参与
星数125
关注者数9
派生数48
提交数589
已启用问题?
问题数123
打开的问题数58
拉请求数148
打开的拉请求数4
关闭的拉请求数7
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?