rookie_yaml 0.3.1 copy "rookie_yaml: ^0.3.1" to clipboard
rookie_yaml: ^0.3.1 copied to clipboard

A customizable YAML parser that can parse both json and yaml.

example/main.dart

import 'package:rookie_yaml/src/parser/yaml_loaders.dart';

void main(List<String> args) {
  const yaml = '''
plain
---
"double quoted"
---
'single quoted'
---
> # Comment
  folded
---
| # Comment
  literal
---
flow: {
  flow: map
  flow: [sequence]
 }
block:
  block: map
  block:
    - sequence
''';

  final docs = loadAllDocuments(YamlSource.string(yaml)); // Parse documents

  // [parseNodes] maps the docs parsed as below.
  print(docs.map((d) => d.root));
}
0
likes
160
points
128
downloads

Publisher

verified publishertaske.dev

Weekly Downloads

A customizable YAML parser that can parse both json and yaml.

Repository (GitHub)
View/report issues
Contributing

Topics

#yaml

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

collection, logging

More

Packages that depend on rookie_yaml