Skip to content

lesnitsky/readme

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

readme

lesnitsky.dev GitHub stars Twitter Follow

Generates a readme for flutter package

Installation

pubspec.yaml:

dependencies:
  readme: ^1.0.0

or

pub global activate readme

Example

import 'dart:io';

import 'package:readme/readme.dart';

void main(List<String> args) async {
  final info = getPackageInfo();

  final shiledProps = await ShieldProps.read();

  final readme = new Readme()
    ..packageName = info.name
    ..description = info.description
    ..license = args.length > 0 ? args.first : 'MIT'
    ..example = await getExample()
    ..shields = compileShields(shiledProps);

  stdout.write(readme);
}

From command line

readme <LICENSE_TYPE> # default: MIT

License

MIT

About

Generates README for your flutter package

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages