commandline_splitter 1.5.2

  • Example
  • Installing
  • Versions
  • 50

Command line splitter #

Splits command line string into a list of individual parts suitable for using with Process.start or

Similar to shlex.split in python.

Example #

import 'package:commandline_splitter/commandline_splitter.dart';

main() {
  print(split('bash -c "uname -a"')); // => [bash, -c, "uname -a"]

1.0.0 #

  • Initial version, created by Stagehand


import 'package:commandline_splitter/commandline_splitter.dart';

main() {
  print(split('bash -c "uname -a"'));

Use this package as a library

1. Depend on it

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

  commandline_splitter: ^1.5.2

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:commandline_splitter/commandline_splitter.dart';
Version Uploaded Documentation Archive
1.5.2 Apr 13, 2019 Go to the documentation of commandline_splitter 1.5.2 Download commandline_splitter 1.5.2 archive
1.5.1 Apr 13, 2019 Go to the documentation of commandline_splitter 1.5.1 Download commandline_splitter 1.5.1 archive
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 Jun 17, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.3.2
  • pana: 0.12.18


Detected platforms: Flutter, web, other

No platform restriction found in primary library package:commandline_splitter/commandline_splitter.dart.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.1.0 <3.0.0
Dev dependencies
pedantic ^1.0.0
test ^1.0.0