js-obj-to-str
v1.0.2
Published
Convert javascript object to readable string for Email and terminal
Downloads
1
Maintainers
Readme
object-to-string
This package has two function
getObjectStringConsole: For getting output string for consoles
getObjectStringHtml For getting output string for browsers or getting HTML content
Example: const objToStr = require('js-obj-to-str');
const testSub = { "type": 2, "value": "test", "address": "string" };
console.log(objToStr.getObjectStringHtml(testSub)); Output:
console.log(objToStr.getObjectStringConsole(testSub));
Output: type = 2 value = test address = string