Converts any string into an object with key value based pairs
Flags used are "-" single dashes.
npm: https://www.npmjs.com/package/dash-commands
github: https://github.com/nabtron/dash-commands
developer: nabtron
npm i dash-commands
const dashCommands = require("dash-commands")
const speak = '-title sometitle -date 229939 -self "visibly interest is going on" -teri "chicken" -last \'one two \''
console.log(dashCommands(speak))
'-title sometitle -date 229939 -self "visibly interest is going on" -teri "chicken" -last \'one two \''
{
title: 'sometitle',
date: '229939',
self: 'visibly interest is going on',
teri: 'chicken',
last: 'one two'
}