search 0.0.2

Overview #

This package helps to crawl and search documents.

Contributing #

Features #

Query parsing #

  • "new york" (quoted search terms)
  • pet -cat (logical NOT)
  • pet dog (logical AND)
  • pet site:example.com (attributes)

Use this package as an executable

1. Install it

You can install the package from the command line:


$ pub global activate search

2. Use it

The package has the following executables:


$ search

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  search: ^0.0.2

2. Install it

You can install packages from the command line:

with pub:


$ pub get

with Flutter:


$ flutter pub get

Alternatively, your editor might support pub get or flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:search/search.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
22
Health:
Code health derived from static analysis. [more]
75
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
47
Overall:
Weighted score of the above. [more]
43
Learn more about scoring.

We analyzed this package on Oct 23, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.5.1
  • pana: 0.12.21

Platforms

Detected platforms: Flutter, other

Primary library: package:search/search.dart with components: io.

Health issues and suggestions

Fix bin/search.dart. (-25.38 points)

Analysis of bin/search.dart failed with 1 error, 1 hint:

line 245 col 16: The getter 'isMacOS' isn't defined for the class 'Platform'.

line 4 col 8: Unused import: 'package:args/args.dart'.

Maintenance issues and suggestions

Provide a file named CHANGELOG.md. (-20 points)

Changelog entries help developers follow the progress of your package. See the example generated by stagehand.

The package description is too short. (-13 points)

Add more detail to the description field of pubspec.yaml. Use 60 to 180 characters to describe the package, what it does, and its target use case.

Maintain an example. (-10 points)

Create a short demo in the example/ directory to show how to use this package.

Common filename patterns include main.dart, example.dart, and search.dart. Packages with multiple examples should provide example/README.md.

For more information see the pub package layout conventions.

Package is pre-v0.1 release. (-10 points)

While nothing is inherently wrong with versions of 0.0.*, it might mean that the author is still experimenting with the general direction of the API.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0 <3.0.0
args ^1.5.2 1.5.2
async ^2.2.0 2.4.0
collection ^1.14.11 1.14.12
meta ^1.1.7 1.1.7
universal_html >=1.0.9 <2.0.0 1.1.6
universal_io >=0.7.2 <2.0.0 0.8.4
Transitive dependencies
charcode 1.1.2
convert 2.1.1
csslib 0.16.1
html 0.14.0+3
path 1.6.4
petitparser 2.4.0
source_span 1.5.5
term_glyph 1.1.0
typed_data 1.1.6
xml 3.5.0
zone_local 0.1.1
Dev dependencies
pedantic ^1.7.0
test ^1.6.4