js_shims 1.0.0

  • README.md
  • Installing
  • Versions
  • 72


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


  • 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 Dec 5, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.1.0
  • pana: 0.12.7


Detected platforms: Flutter, web, other

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

Health suggestions

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

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

line 3 col 16: Name types using UpperCamelCase.

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/core.dart (Run dartfmt to format lib/src/core.dart.)
  • lib/src/strings.dart (Run dartfmt to format lib/src/strings.dart.)

Maintenance suggestions

Maintain an example. (-10 points)

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 js_shims.dart.


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