obect-to-string

1.0.3 • Public • Published

object-to-string

This package has two function

  1. getObjectStringConsole: For getting output string for consoles

  2. getObjectStringHtml For getting output string for browsers or getting HTML content

Example: const objToStr = require('obect-to-string');

const testSub = { "type": 2, "value": "test", "address": "string" };

console.log(objToStr.getObjectStringHtml(testSub)); Output:

type = 2

value = test

address = string

console.log(objToStr.getObjectStringConsole(testSub));

Output: type = 2
value = test
address = string

Package Sidebar

Install

npm i obect-to-string

Weekly Downloads

1

Version

1.0.3

License

ISC

Unpacked Size

2.61 kB

Total Files

4

Last publish

Collaborators

  • vijayarya326