jsonml 0.1.9
jsonml: ^0.1.9 copied to clipboard

Library for converting to and from JsonML. Can display JsonML in the DOM and can convert JsonML to and from HTML representations.

1
likes
75 / 110
pub points
62 %
popularity

We analyzed this package on Apr 13, 2021, and awarded it 75 pub points (of a possible 110):

Follow Dart file conventions
15 / 20

10/10 points: Provide a valid pubspec.yaml

0/5 points: Provide a valid README.md

Links in `README.md` should be secure. 3 links are insecure.

README.md:2:33

  ╷
2 │ <p>This is an implementation of <a href="http://www.jsonml.org/">JsonML</a> in Dart.</p>
  │                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  ╵

Use https URLs instead.

5/5 points: Provide a valid CHANGELOG.md

Provide documentation
20 / 20

10/10 points: Package has an example

  • Found example at: example/README.md

10/10 points: 20% or more of the public API has dartdoc comments

  • 8 out of 15 API elements (53.3 %) have documentation comments.
Support multiple platforms
10 / 20

10/20 points: Supports 1 of 2 possible platforms (native, js)

Consider supporting multiple platforms:

Package not compatible with runtime native

Because:

  • package:jsonml/jsonml2dom.dart that imports:
  • dart:svg
Pass static analysis
20 / 30

20/30 points: code has no errors, warnings, lints, or formatting issues

INFO: 'List' is deprecated and shouldn't be used. Use a list literal, [], or the List.filled constructor instead.

lib/html5lib2jsonml.dart:10:19

   ╷
10 │       var nodes = List<Object>(node.nodes.length + 1);
   │                   ^^^^^^^^^^^^
   ╵

To reproduce make sure you are using pedantic and run dartanalyzer lib/html5lib2jsonml.dart

INFO: 'List' is deprecated and shouldn't be used. Use a list literal, [], or the List.filled constructor instead.

lib/html5lib2jsonml.dart:25:20

   ╷
25 │     final output = List<Object>(
   │                    ^^^^^^^^^^^^
   ╵

To reproduce make sure you are using pedantic and run dartanalyzer lib/html5lib2jsonml.dart

Support up-to-date dependencies
10 / 20

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

PackageConstraintCompatibleLatest
html>=0.14.0+3 <0.15.00.14.0+40.15.0
Transitive dependencies
PackageConstraintCompatibleLatest
collection-1.15.01.15.0
csslib-0.16.20.17.0
path-1.8.01.8.0
source_span-1.8.11.8.1
term_glyph-1.2.01.2.0

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

The constraint `>=0.14.0+3 <0.15.0` on html does not support the stable version `0.15.0`.

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

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

Analysed with Pana 0.15.4, Dart 2.12.2.

1
likes
75
pub points
62%
popularity

Library for converting to and from JsonML. Can display JsonML in the DOM and can convert JsonML to and from HTML representations.

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

filip.hracek@gmail.com

License

BSD (LICENSE)

Dependencies

html

More

Packages that depend on jsonml