jsproxy 0.0.6

  • README.md
  • CHANGELOG.md
  • Installing
  • Versions
  • 33

#JsProxy

Creates a JavaScript interface for a dart project so that a dart library can be easily used from JavaScript world.

[Experimental] It is at a very early stage today. The user needs to specify a conversion function to expose dart library (Please see test.dart as an example). The goal of this project is to provide an annotation and an transformer which auto generate a javascript interface for a dart library.

0.0.6

  • Fix function conversion

0.0.5

  • In createJsProxy function, it the obj is not coverred by any case, return a JsProxy.

0.0.4

  • Fix stack overflow

0.0.3

  • pass customConversionFunc into futureProxy

0.0.2

  • Add isFuture in FutureProxy

0.0.1

  • Initial implementation

1. Depend on it

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


dependencies:
  jsproxy: "^0.0.6"

2. Install it

You can install packages from the command line:

with pub:


$ pub get

Alternatively, your editor might support pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:jsproxy/jsproxy.dart';
        
Version Uploaded Documentation Archive
0.0.6 May 3, 2016 Go to the documentation of jsproxy 0.0.6 Download jsproxy 0.0.6 archive
0.0.5 Aug 19, 2015 Go to the documentation of jsproxy 0.0.5 Download jsproxy 0.0.5 archive
0.0.4 Jul 25, 2015 Go to the documentation of jsproxy 0.0.4 Download jsproxy 0.0.4 archive
0.0.3 Jul 19, 2015 Go to the documentation of jsproxy 0.0.3 Download jsproxy 0.0.3 archive
0.0.2 Jul 10, 2015 Go to the documentation of jsproxy 0.0.2 Download jsproxy 0.0.2 archive
0.0.1 Jun 14, 2015 Go to the documentation of jsproxy 0.0.1 Download jsproxy 0.0.1 archive

Analysis

This feature is new.
We welcome feedback.
More details: scoring.

We analyzed this package, and provided a score, details, and suggestions below.

  • completed on Feb 3, 2018
  • Dart: 2.0.0-dev.20.0
  • pana: 0.10.1

Scores

Popularity:
Describes how popular the package is relative to other packages. [more]
0 / 100
Health:
Code health derived from static analysis. [more]
95 / 100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
25 / 100
Overall score:
Weighted score of the above. [more]
33

Platforms

Detected platforms: web

Primary library: package:jsproxy/jsproxy.dart with components: html, js.

Suggestions

  • Package is pre-v1 release.

    While there is nothing inherently wrong with versions of 0.*.*, it usually means that the author is still experimenting with the general direction API.

  • Maintain an example.

    Create a short demo in the example/ directory to show how to use this package. Common file name patterns include: main.dart, example.dart or you could also use jsproxy.dart.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.0.0 <2.0.0
Dev dependencies
test any