JSPM

object-string

0.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q31256F
  • License MIT

Read string as JS object

Package Exports

  • object-string

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (object-string) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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