jsparser 2.0.1
jsparser: ^2.0.1 copied to clipboard

JavaScript parser originally written by Asger Feldthaus<asger.feldthaus@gmail.com>, upgarded to dart 2.4 by Anurag Vohra <anuragvohraec@gmail.com>

2
likes
100 / 110
pub points
65 %
popularity

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

Follow Dart file conventions
20 / 20

10/10 points: Provide a valid pubspec.yaml

5/5 points: Provide a valid README.md

5/5 points: Provide a valid CHANGELOG.md

Provide documentation
20 / 20

10/10 points: Package has an example

  • Found example at: example/example.dart

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

  • 232 out of 625 API elements (37.1 %) have documentation comments.
Support multiple platforms
20 / 20

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

Pass static analysis
20 / 30

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

Found 93 issues. Showing the first 2:

INFO: Unnecessary new keyword.

lib/jsparser.dart:31:20

   ╷
31 │   Offsets offset = new Offsets(0, text.length, firstLine);
   │                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   ╵

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

INFO: Unnecessary new keyword.

lib/jsparser.dart:35:17

   ╷
35 │     Lexer lexer = new Lexer(text,
   │ ┌─────────────────^
36 │ │       filename: filename,
37 │ │       currentLine: offset.line,
38 │ │       index: offset.start,
39 │ │       endOfFile: offset.end);
   │ └────────────────────────────^
   ╵

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

Support up-to-date dependencies
20 / 20

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

PackageConstraintCompatibleLatest
unicode>=0.0.8 <1.0.00.3.00.3.0
Transitive dependencies
PackageConstraintCompatibleLatest
lists-1.0.01.0.0
meta-1.3.01.3.0

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

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

Analysed with Pana 0.15.4, Dart 2.12.2.

2
likes
100
pub points
65%
popularity

JavaScript parser originally written by Asger Feldthaus<asger.feldthaus@gmail.com>, upgarded to dart 2.4 by Anurag Vohra <anuragvohraec@gmail.com>

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

anuragvohraec@gmail.com

License

BSD (LICENSE)

Dependencies

unicode

More

Packages that depend on jsparser