Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/eggnstone/dart_format
https://github.com/eggnstone/dart_format
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/eggnstone/dart_format
- Owner: eggnstone
- License: bsd-3-clause
- Created: 2023-02-23T09:41:44.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2024-09-14T14:25:58.000Z (4 months ago)
- Last Synced: 2024-09-15T20:32:07.198Z (4 months ago)
- Language: Dart
- Size: 769 KB
- Stars: 9
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# dart_format
[![Build](https://github.com/eggnstone/dart_format/actions/workflows/dart.yaml/badge.svg)](https://github.com/eggnstone/dart_format/actions)
[![pub package](https://img.shields.io/pub/v/dart_format.svg)](https://pub.dartlang.org/packages/dart_format)
[![GitHub Issues](https://img.shields.io/github/issues/eggnstone/dart_format.svg)](https://github.com/eggnstone/dart_format/issues)
[![GitHub Stars](https://img.shields.io/github/stars/eggnstone/dart_format.svg)](https://github.com/eggnstone/dart_format/stargazers)## A formatter for Dart.
Like dartfmt.
But better ;)
Because it's configurable.Also available as a plugin for Jetbrains (Android Studio, IntelliJ IDEA, ...)
https://plugins.jetbrains.com/plugin/21003-dartformat
Also available as an extension for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=eggnstone.DartFormat## To run dart_format from the command line:
- Follow the instructions at https://pub.dev/packages/dart_format/install```
Usage: dart_format [args]
[ ...] Formats the specified dart file(s)
--config= Specifies the configuration
--dry-run, -dr Writes output to ".formatted.dart"
--errors-as-json Writes errors as JSON to stderr
--log-to-console Logs to console
--pipe Formats stdin and writes to stdout
--skip-version-check Skips version check on start-up
--web[service] Starts in web service mode
```