Skip to main content

Guide

When to Use

This package can be used to tokenize simple delimiter-based inputs escaped by quotes. For example, it can parse hello "this is" 'some text' as ["hello", "this is", "some text"]. It can also handle parsing with custom delimiters, such as hello."this is".'some text' which can be parsed the same way using the WithTokenRegex and WithDelimiterRegex options.

Example

See the package-level example in the API Docs

Options

See available options with examples in the API Docs