js_shims 1.0.0

  • README.md
  • Installing
  • Versions
  • 63

js_shims #

Build Status

Common js utils to help porting node.js and javascript libs to dart. Behavior of libs should match the js implementation as closely as dart allows.

Installing via Pub #

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

  js_shims: ^1.0.0

1.0.0 #

  • Release first version

Use this package as a library

1. Depend on it

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

  js_shims: ^1.0.0

2. Install it

You can install packages from the command line:

with pub:

$ pub get

with Flutter:

$ flutter packages get

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

3. Import it

Now in your Dart code, you can use:

import 'package:js_shims/js_shims.dart';
Version Uploaded Documentation Archive
1.0.0 Aug 5, 2018 Go to the documentation of js_shims 1.0.0 Download js_shims 1.0.0 archive
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on Apr 12, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.2.0
  • pana: 0.12.14


Detected platforms: Flutter, web, other

No platform restriction found in primary library package:js_shims/js_shims.dart.

Health suggestions

Fix lib/src/strings.dart. (-0.50 points)

Analysis of lib/src/strings.dart reported 1 hint:

line 64 col 39: Don't explicitly initialize variables to null.

Format lib/js_shims.dart.

Run dartfmt to format lib/js_shims.dart.

Format lib/src/JSON.dart.

Run dartfmt to format lib/src/JSON.dart.

Fix additional 3 files with analysis or formatting issues.

Additional issues in the following files:

  • lib/src/arrays.dart (Run dartfmt to format lib/src/arrays.dart.)
  • lib/src/console.dart (Run dartfmt to format lib/src/console.dart.)
  • lib/src/core.dart (Run dartfmt to format lib/src/core.dart.)

Maintenance suggestions

Maintain an example. (-10 points)

Create a short demo in the example/ directory to show how to use this package.

Common filename patterns include main.dart, example.dart, and js_shims.dart. Packages with multiple examples should provide example/README.md.

For more information see the pub package layout conventions.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0-dev.67.0 <3.0.0
Dev dependencies
test ^1.0.0