lynkz 1.0.4

  • README.md
  • Example
  • Installing
  • Versions
  • 42

lynkz

The somewhat official wrapper for lynkz.me written in Dartlang

By: Evan Pratten

How to use

import 'package:lynkz/lynkz.dart' as lynkz;

main() async{
// shorten a link
var shortenedlink = await lynkz.Create("Https://link.here");

// print that link
print(shortenedlink[0]);

// get the link id
var linkid = lynkz.urlToIdentifier(shortenedlink[0]);

// get the delete key
var deletekey = shortenedlink[1];

// delete that link
lynkz.Delete(linkid, deletekey);
}

example/example.dart

import 'package:lynkz/lynkz.dart' as lynkz;

main() async {
// shorten a link
  var shortenedlink = await lynkz.Create("Https://link.here");

// print that link
  print(shortenedlink[0]);

// get the link id
  var linkid = lynkz.urlToIdentifier(shortenedlink[0]);

// get the delete key
  var deletekey = shortenedlink[1];

// delete that link
  lynkz.Delete(linkid, deletekey);
}

Use this package as a library

1. Depend on it

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


dependencies:
  lynkz: "^1.0.4"

2. Install it

You can install packages from the command line:

with pub:


$ pub get

with Flutter:


$ flutter packages get

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

3. Import it

Now in your Dart code, you can use:


      import 'package:lynkz/lynkz.dart';
  
Version Uploaded Documentation Archive
1.0.4 May 2, 2018 Go to the documentation of lynkz 1.0.4 Download lynkz 1.0.4 archive
1.0.3 May 1, 2018 Go to the documentation of lynkz 1.0.3 Download lynkz 1.0.3 archive
1.0.2 May 1, 2018 Go to the documentation of lynkz 1.0.2 Download lynkz 1.0.2 archive
1.0.1 May 1, 2018 Go to the documentation of lynkz 1.0.1 Download lynkz 1.0.1 archive
1.0.0 Apr 30, 2018 Go to the documentation of lynkz 1.0.0 Download lynkz 1.0.0 archive

Analysis

We analyzed this package on Jul 13, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.0.0-dev.63.0
  • pana: 0.11.3

Scores

Popularity:
Describes how popular the package is relative to other packages. [more]
0 / 100
Health:
Code health derived from static analysis. [more]
87 / 100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
80 / 100
Overall score:
Weighted score of the above. [more]
42
Learn more about scoring.

Platforms

Detected platforms: Flutter, web, other

No platform restriction found in primary library package:lynkz/lynkz.dart.

Suggestions

  • Maintain CHANGELOG.md.

    Changelog entries help clients to follow the progress in your code.

  • Fix analysis and formatting issues.

    Analysis or formatting checks reported 3 hints.

    Run dartfmt to format lib/globals.dart.

    Run dartfmt to format lib/lynkz.dart.

Dependencies

Package Constraint Resolved Available
Direct dependencies
http >=0.11.3+16 <0.12.0 0.11.3+17
Transitive dependencies
async 2.0.7
charcode 1.1.2
collection 1.14.10
http_parser 3.1.2
path 1.6.1
source_span 1.4.0
string_scanner 1.0.2
typed_data 1.1.5