Skip to content

rogerbf/object-from-string

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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'))
// {}

About

where key and value are separated by a delimiter

Resources

Stars

Watchers

Forks

Packages

No packages published