object-from-string
v0.0.1
Published
where key and value are separated by a delimiter
Downloads
6
Readme
object-from-string
Creates an object form a string where key and value are separated by a delimiter.
const objectFrom = require('object-from-string')(':')
console.log(objectFrom('captain: jean-luc picard')) // { captain: "jean-luc picard" }
console.log(objectFrom('first officer, william riker')) // {}