console 4.0.0 copy "console: ^4.0.0" to clipboard
console: ^4.0.0 copied to clipboard

outdated

A library for common features required by console applications, including color formatting, keyboard input, and progress bars.

67
likes
70/ 160
pub points
86%
popularity

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

failed
Follow Dart file conventions
20 / 30trigger folding of the section

10/10 points: Provide a valid pubspec.yaml

5/5 points: Provide a valid README.md

5/5 points: Provide a valid CHANGELOG.md

0/10 points: Use an OSI-approved license

No license was recognized.

Consider using an OSI-approved license in the LICENSE file to make it more accessible to the community.

partial
Provide documentation
10 / 20trigger folding of the section

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

42 out of 320 API elements (13.1 %) 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: console, console.BufferConsoleAdapter, console.BufferConsoleAdapter.BufferConsoleAdapter, console.BufferConsoleAdapter.buffer, console.BufferConsoleAdapter.byteStream.

10/10 points: Package has an example

failed
Platform support
20 / 20trigger folding of the section

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

  • ✓ Android

  • ✓ iOS

  • ✓ Windows

  • ✓ Linux

  • ✓ macOS

These platforms are not supported:

Package not compatible with platform Web

Because:

  • package:console/console.dart that imports:
  • dart:io

0/0 points: WASM compatibility

Unable to detect compatibility with runtime wasm, and this package will not be rewarded full points in a future version of the scoring model.

See https://dart.dev/web/wasm for details.

failed
Pass static analysis
0 / 50trigger folding of the section

0/50 points: code has no errors, warnings, lints, or formatting issues

Found 101 issues. Showing the first 2:

ERROR: The non-nullable variable '_table' must be initialized.

lib/clut.dart:262:18

    ╷
262 │ Map<int, String> _table;
    │                  ^^^^^^
    ╵

To reproduce make sure you are using the lints_core and run dart analyze lib/clut.dart

ERROR: A value of type 'String?' can't be returned from the function 'getColor' because it has a return type of 'String'.

lib/clut.dart:274:31

    ╷
274 │ String getColor(int color) => getColorLookupTable()[color];
    │                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ╵

To reproduce make sure you are using the lints_core and run dart analyze lib/clut.dart

failed
Support up-to-date dependencies
20 / 40trigger folding of the section

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

Package Constraint Compatible Latest
vector_math ^2.0.7 2.1.4 2.1.4

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

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

0/20 points: Compatible with dependency constraint lower bounds

downgrade analysis failed failed with 52 errors:

  • NOT_INITIALIZED_NON_NULLABLE_VARIABLE - lib/clut.dart:262:18 - The non-nullable variable '_table' must be initialized.
  • RETURN_OF_INVALID_TYPE - lib/clut.dart:274:31 - A value of type 'String?' can't be returned from the function 'getColor' because it has a return type of 'String'.
  • RETURN_OF_INVALID_TYPE - lib/src/adapter.dart:26:20 - A value of type 'String?' can't be returned from the method 'read' because it has a return type of 'String'.

Run dart pub downgrade and then dart analyze to reproduce the above problem.

You may run dart pub upgrade --tighten to update your dependency constraints, see dart.dev/go/downgrade-testing for details.

Analyzed with Pana 0.22.15, Dart 3.5.4.

Check the analysis log for details.

67
likes
70
pub points
86%
popularity

Publisher

unverified uploader

A library for common features required by console applications, including color formatting, keyboard input, and progress bars.

Repository (GitHub)
View/report issues

Documentation

API reference

License

unknown (license)

Dependencies

vector_math

More

Packages that depend on console