yamlicious 0.1.0

yamlicious #

A library for writing yaml files

Usage #

A simple usage example:

import 'package:yamlicious/yamlicious.dart';

main() {
  var yamlStr = toYamlString(yamlNode);

Features and bugs #

Please file feature requests and bugs at the issue tracker.

Changelog #

0.1.0 #

  • Dart 2

0.0.5 #

  • strong mode
  • quiver -> quiver_iterables

0.0.4 #

  • tidy dependencies

0.0.2 #

  • fix handling of doubles and quoting strings (thanks @rbellens)

0.0.1 #

  • Initial version, created by Stagehand


// Copyright (c) 2015, Anders Holmgren. All rights reserved. Use of this source code
// is governed by a BSD-style license that can be found in the LICENSE file.

library yamlicious.example;

import 'dart:io' show File;

import 'package:yaml/yaml.dart' show loadYaml;
import 'package:yamlicious/yamlicious.dart' show toYamlString;

main() {
  File file = new File("pubspec.yaml");

Use this package as a library

1. Depend on it

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

  yamlicious: ^0.1.0

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:yamlicious/yamlicious.dart';
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

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

  • Dart: 2.7.1
  • pana: 0.13.5

Health suggestions

Fix lib/src/yaml_writer.dart. (-0.50 points)

Analysis of lib/src/yaml_writer.dart reported 1 hint:

line 10 col 12: Unnecessary new keyword.

Maintenance issues and suggestions

Use analysis_options.yaml. (-10 points)

Change the name of your package's .analysis_options file to analysis_options.yaml.

Read more about the setup of analysis-options.yaml.

Package is getting outdated. (-36.44 points)

The package was last published 71 weeks ago.

The package description is too short. (-20 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.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0 <3.0.0
quiver ^2.0.0+1 2.1.2+1
Transitive dependencies
matcher 0.12.6
meta 1.1.8
path 1.6.4
stack_trace 1.9.3
Dev dependencies
test ^1.3.3
yaml ^2.1.15