Skip to content

egoist/object-string

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

object-string NPM version NPM downloads Build Status

Read string as JS object

Install

$ npm install --save object-string

Usage

const objectString = require('object-string')

objectString('foo,bar')
//=> ['foo', 'bar']

objectString('foo:bar')
//=> {foo: 'bar'}

objectString('foo:bar,hoo:yah')
//=> {foo: 'bar', hoo: 'yah'}

License

MIT © EGOIST

About

Read string as JS object

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published