irc 4.0.2

  • Readme
  • Changelog
  • Example
  • Installing
  • 43

Dart IRC Build Status Latest Version

Simple Dart library for IRC.

Getting Started #

Visit the Getting Started wiki page.

Notices #

irc.dart is licensed under the MIT license. We really don't care what you do. Use it and abuse it.

4.0.1 #

  • Fix pub analysis issues

4.0.0 #

  • First version to support Dart v2
  • Added pedantic for analysis issues
  • Fixed all pedantic issues

example/README.md

Examples #

colors.dart #

Provides an example on how to retrieve and use the colors that IRC supports.

main.dart #

Provides an example on how to use the main IRC client for a simple bot, providing commands that show other features of irc.dart.

parsing.dart #

Provides an example on how to use the internal parser for parsing IRC messages.

pool.dart #

Provides an example on how to use the client pool for multiple clients or servers in one application.

Use this package as a library

1. Depend on it

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


dependencies:
  irc: ^4.0.2

2. Install it

You can install packages from the command line:

with pub:


$ pub get

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

3. Import it

Now in your Dart code, you can use:


import 'package:irc/client.dart';
import 'package:irc/event.dart';
import 'package:irc/parser.dart';
import 'package:irc/protocol.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
16
Health:
Code health derived from static analysis. [more]
50
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
100
Overall:
Weighted score of the above. [more]
43
Learn more about scoring.

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

  • Dart: 2.6.1
  • pana: 0.12.21

Platforms

Detected platforms: other

Platform components identified in package: io, mirrors.

Health suggestions

Fix lib/src/client/client.dart. (-37.89 points)

Analysis of lib/src/client/client.dart reported 95 hints, including:

line 14 col 38: Unnecessary new keyword.

line 72 col 40: Unnecessary new keyword.

line 75 col 19: Unnecessary new keyword.

line 76 col 19: Unnecessary new keyword.

line 83 col 15: Unnecessary new keyword.

Fix lib/src/client/channel.dart. (-4.41 points)

Analysis of lib/src/client/channel.dart reported 9 hints, including:

line 16 col 25: Unnecessary new keyword.

line 19 col 29: Unnecessary new keyword.

line 22 col 28: Unnecessary new keyword.

line 25 col 29: Unnecessary new keyword.

line 28 col 28: Unnecessary new keyword.

Fix lib/src/event/core.dart. (-3.93 points)

Analysis of lib/src/event/core.dart reported 8 hints, including:

line 37 col 21: Unnecessary new keyword.

line 61 col 13: Unnecessary new keyword.

line 110 col 13: Unnecessary new keyword.

line 135 col 15: Unnecessary new keyword.

line 144 col 15: Unnecessary new keyword.

Fix additional 10 files with analysis or formatting issues. (-13.40 points)

Additional issues in the following files:

  • lib/src/parser/message.dart (7 hints)
  • lib/src/client/base.dart (6 hints)
  • lib/src/parser/regex.dart (3 hints)
  • lib/src/client/colors.dart (2 hints)
  • lib/src/client/connection.dart (2 hints)
  • lib/src/client/user.dart (2 hints)
  • lib/src/parser/hostmask.dart (2 hints)
  • lib/src/client/helpers.dart (1 hint)
  • lib/src/client/pool.dart (1 hint)
  • lib/src/parser/base.dart (1 hint)

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0 <3.0.0
glob ^1.1.7 1.2.0
pedantic ^1.5.0 1.9.0
Transitive dependencies
async 2.4.0
charcode 1.1.2
collection 1.14.12
js 0.6.1+1
meta 1.1.8
node_interop 1.0.3
node_io 1.0.1+2
path 1.6.4
source_span 1.5.5
string_scanner 1.0.5
term_glyph 1.1.0
Dev dependencies
test ^1.3.2