mirror of
https://github.com/SolitudeSF/shlex
synced 2026-01-03 02:24:38 +00:00
No description
| src | ||
| tests | ||
| LICENSE | ||
| README.md | ||
| shlex.nimble | ||
shlex
Split a string into words according to POSIX shell syntax
Library provides a function, that return a sequence of words and a boolean, that shows if the input contained errors, and an iterator that just returns words.
Installation
nimble install shlex
Example
import shlex
doAssert shlex("foo\nbar").words == @["foo", "bar"]
for word in shlex("I love \"Nim👑\""):
echo word