← All languages

wildling

Dart library and CLI for pattern-based string generation. Zero third-party packages (dart:convert / dart:io / dart:core only). Requires Dart SDK 3.0+.

Example

Install

From this repository:

cd dart
./build.sh
./bin/wildling "Year 19##"

Produces a standalone AOT binary at dist/wildling.

Git:

dart pub add wildling \
  --git-url=https://github.com/dotmonk/wildling.git \
  --git-path=dart \
  --git-ref=v2.0.0

Registry: dart pub add wildling

import 'package:wildling/wildling.dart';

final wildling = Wildling(['Year 19##']);
var value = wildling.next();
while (value != false) {
  print(value);
  value = wildling.next();
}

CLI

./bin/wildling "Year 19##"
./bin/wildling --dictionary planets:../dictionaries/planets.txt "%{'planets'}"
./bin/wildling --template ./config.json

Help text and --check output follow docs/cli.md / docs/help.txt.

Build

./build.sh   # Docker (dart:stable): dart pub get + compile exe → dist/wildling

Project tests live in ../tests/ and are run with ../test.sh.