ffigen_js 0.0.14-pre copy "ffigen_js: ^0.0.14-pre" to clipboard
ffigen_js: ^0.0.14-pre copied to clipboard

Platformweb

ffigen, but for Javascript/WebAssembly interop bindings

120/ 160
pub points
2.83k
downloads

We analyzed this package 2 days ago, and awarded it 120 pub points (of a possible 160):

Passed report section
Follow Dart file conventions
30 / 30trigger folding of the section

Passed check 10/10 points: Provide a valid pubspec.yaml

Passed check 5/5 points: Provide a valid README.md

Passed check 5/5 points: Provide a valid CHANGELOG.md

Passed check 10/10 points: Use an OSI-approved license

Detected license: Apache-2.0.

Partially passed report section
Provide documentation
10 / 20trigger folding of the section

Partially passed check 0/10 points: 20% or more of the public API has dartdoc comments

4 out of 219 API elements (1.8 %) have documentation comments.

Providing good documentation for libraries, classes, functions, and other API elements improves code readability and helps developers find and use your API. Document at least 20% of the public API elements.

To highlight public API members missing documentation consider enabling the public_member_api_docs lint.

Some symbols that are missing documentation: ffigen_js, ffigen_js.Array, ffigen_js.Array.Array.new, ffigen_js.Array.asUint8List, ffigen_js.Array.cast.

Passed check 10/10 points: Package has an example

Passed report section
Platform support
20 / 20trigger folding of the section

Passed check 20/20 points: Supports 1 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)

  • ✓ Web

These platforms are not supported:

Package not compatible with platform Android

Because:

  • package:ffigen_js/ffigen_js.dart that imports:
  • package:ffigen_js/src/types.dart that imports:
  • dart:js_interop_unsafe
Package not compatible with platform iOS

Because:

  • package:ffigen_js/ffigen_js.dart that imports:
  • package:ffigen_js/src/types.dart that imports:
  • dart:js_interop_unsafe
Package not compatible with platform Windows

Because:

  • package:ffigen_js/ffigen_js.dart that imports:
  • package:ffigen_js/src/types.dart that imports:
  • dart:js_interop_unsafe
Package not compatible with platform Linux

Because:

  • package:ffigen_js/ffigen_js.dart that imports:
  • package:ffigen_js/src/types.dart that imports:
  • dart:js_interop_unsafe
Package not compatible with platform macOS

Because:

  • package:ffigen_js/ffigen_js.dart that imports:
  • package:ffigen_js/src/types.dart that imports:
  • dart:js_interop_unsafe

WASM-ready: This package is compatible with runtime wasm. See https://dart.dev/web/wasm for details.

Failed report section
Pass static analysis
30 / 50trigger folding of the section

Failed check 30/50 points: code has no errors, warnings, lints, or formatting issues

Found 34 issues. Showing the first 2:

WARNING: The declaration '_getInlineArrayTypeString' isn't referenced.

lib/src/jsgen/code_generator/compound.dart:96:10

   ╷
96 │   String _getInlineArrayTypeString(Type type, Writer w) {
   │          ^^^^^^^^^^^^^^^^^^^^^^^^^
   ╵

To reproduce make sure you are using the lints_core and run dart analyze lib/src/jsgen/code_generator/compound.dart

WARNING: Unused import: 'imports.dart'.

lib/src/jsgen/code_generator/enum_class.dart:9:8

  ╷
9 │ import 'imports.dart';
  │        ^^^^^^^^^^^^^^
  ╵

To reproduce make sure you are using the lints_core and run dart analyze lib/src/jsgen/code_generator/enum_class.dart

Failed report section
Support up-to-date dependencies
30 / 40trigger folding of the section

Failed check 0/10 points: All of the package dependencies are supported in the latest version

Package Constraint Compatible Latest Notes
args ^2.7.0 2.7.0 2.7.0
cli_util ^0.4.2 0.4.2 0.6.0
collection ^1.19.1 1.19.1 1.19.1
ffi ^2.1.4 2.2.0 2.2.0
file ^7.0.1 7.0.1 7.0.1
glob ^2.1.3 2.1.3 2.1.3
logging ^1.3.0 1.3.0 1.3.0
package_config ^2.2.0 2.2.0 3.0.0
path ^1.9.1 1.9.1 1.9.1
pub_semver ^2.2.0 2.2.0 2.2.0
quiver ^3.2.2 3.2.2 3.2.2
yaml ^3.1.3 3.1.3 3.1.3
yaml_edit ^2.2.4 2.2.4 2.2.4
Transitive dependencies
Package Constraint Compatible Latest Notes
async - 2.13.1 2.13.1
boolean_selector - 2.1.2 2.1.2
matcher - 0.12.20 0.12.20
meta - 1.19.0 1.19.0
source_span - 1.10.2 1.10.2
stack_trace - 1.12.1 1.12.1
stream_channel - 2.1.4 2.1.4
string_scanner - 1.4.1 1.4.1
term_glyph - 1.2.2 1.2.2
test_api - 0.7.13 0.7.13

To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides.

The constraint `^0.4.2` on cli_util does not support the stable version `0.5.0`.

Try running dart pub upgrade --major-versions cli_util to update the constraint.

The constraint `^2.2.0` on package_config does not support the stable version `3.0.0`.

Try running dart pub upgrade --major-versions package_config to update the constraint.

Passed check 10/10 points: Package supports latest stable Dart and Flutter SDKs

Passed check 20/20 points: Compatible with dependency constraint lower bounds

pub downgrade does not expose any static analysis error.

Analyzed with Pana 0.23.18, Dart 3.13.1.

Check the analysis log for details.

Weekly downloads

Display as:
By versions:
2
likes
120
points
2.83k
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

ffigen, but for Javascript/WebAssembly interop bindings

Repository (GitHub)
View/report issues

License

Apache-2.0 (license)

Dependencies

args, cli_util, collection, ffi, file, glob, logging, package_config, path, pub_semver, quiver, yaml, yaml_edit

More

Packages that depend on ffigen_js