0.0.1 • Published 8 years ago
object-from-string v0.0.1
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')) // {}
0.0.1
8 years ago