chrome.dart

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

  • Owner: dart-gde/chrome.dart
  • Platform:
  • License:: Other
  • Category::
  • Topic:
  • Like:
    0
      Compare:

Github stars Tracking Chart

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';

Main metrics

Overview
Name With Ownerdart-gde/chrome.dart
Primary LanguageDart
Program languageJavaScript (Language Count: 5)
Platform
License:Other
所有者活动
Created At2012-12-17 21:19:48
Pushed At2019-06-22 01:30:11
Last Commit At2018-05-03 14:43:50
Release Count24
Last Release Namev0.9.31 (Posted on )
First Release Namev0.1.1 (Posted on 2013-05-28 09:53:30)
用户参与
Stargazers Count125
Watchers Count9
Fork Count48
Commits Count589
Has Issues Enabled
Issues Count123
Issue Open Count58
Pull Requests Count148
Pull Requests Open Count4
Pull Requests Close Count7
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private