kv-tag
Convert template tags with key: value
statements to objects.
About
This module is primarily a demonstration of creating a function to use as a tagged template literal.
You can use it convert a config-file like multiline string with key: value
statements to an object.
Install
npm install --save kv-tag
Usage
var kv = var a = 1var b = 'hello hi hey'var c = 3 var obj = kv` a: b: c: ` console
The logged value is an object:
a: 1 b: 'hello hi hey' c: 3
Contact
- chat – You can chat about this project at http://gitter.im/sethvincent/ask
- issues – Please open issues in the issues queue