3 releases (stable)
| 1.1.0 | Jun 27, 2020 |
|---|---|
| 1.0.0 | Sep 27, 2018 |
| 0.1.0 | Sep 3, 2017 |
#184 in Command-line interface
223,346 downloads per month
Used in 65 crates
(46 directly)
10KB
142 lines
shellwords
Crate shellwords provides utilities for parsing strings as they would be interpreted by the UNIX Bourne shell.
- shellwords on crates.io
- Documentation for the latest crates.io release
Examples
Split a string into a vector of words in the same way the UNIX Bourne shell does:
assert_eq!(split("here are \"two words\"").unwrap(), ["here", "are", "two words"]);
Legal
shellwords is released under the MIT license.
See LICENSE for details.
Dependencies
~2–3MB
~52K SLoC