object-string
Read string as JS object
Last updated 5 years ago by kchan .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install object-string 
SYNC missed versions from official npm registry.

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

Current Tags

  • 0.0.1                                ...           latest (5 years ago)

1 Versions

  • 0.0.1                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 0
Last Month 2
Dependencies (0)
None
Dev Dependencies (2)
Dependents (1)

Copyright 2014 - 2016 © taobao.org |