object-to-string
v1.0.0
Published
Parse object to human readable string
Downloads
116
Maintainers
Readme
Object to String
parse object to human readable string
Install
npm install --save object-to-string
Usage
var objectToString = require('object-to-string');
var result = objectToString({ foo: 'bar', hello: 'world'}, { keySeparator: ':', attrSeparator: ',' });
//=> foo: bar, hello: world
API
objectToString(input, options)
return parsed string from object
input
Required
Type: object
object to parse
options
Type: object
Parsing parameters
options.keySeparator
Type: String
separator between key and value
options.attrSeparator
Type: String
separator between attributes
License
MIT © Yu Jin Lim