0.0.5 • Published 3 years ago

dash-commands v0.0.5

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

dash-commands-package

version 0.0.5

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

Installation

npm i dash-commands

Usage

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))

Example:

For string:

'-title sometitle -date 229939 -self "visibly interest is going on" -teri "chicken" -last \'one two \''

The output will be a Javascript object:

{
  title: 'sometitle',
  date: '229939',
  self: 'visibly interest is going on',
  teri: 'chicken',
  last: 'one two'
}
0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago