{"maintainers":[{"name":"anonymous","email":"fool2fish@126.com"}],"keywords":["util.inspect","inspect","inspector","toString"],"dist-tags":{"latest":"0.1.0"},"author":{"name":"fool2fish","email":"fool2fish@gmail.com"},"description":"Convert object to string.","readme":"# tostr\n\nConvert object to string.\n\n## Usage\n\n**NOTE: did not handle the circular**\n\ninput\n\n```\nvar tostr = require('tostr')\nvar obj = {\n  str: \"'A' \\\"string\\\"\\r\\n.\",\n  strO: new String(\"'A' \\\"string\\\" \\r\\nObject.\"),\n  num: 0,\n  numO: new Number(0),\n  bool: true,\n  boolO: new Boolean(true),\n  undef: undefined,\n  reg: /re/g,\n  regO: new RegExp(\"re\", \"g\"),\n  date: new Date(),\n  date2: new Date('2014-01-01'),\n  arr: [1, 2, 3],\n  arrO: new Array().concat([0,\"1\",true]),\n  obj: {\n    name: \"fool2fish\", email: \"fool2fish@gmail.com\"\n  },\n  objO: new Object(),\n  func: function(a, b) {\n    // some comment\n    return a + b\n  },\n  funcO: new Function(\"a\", \"alert(a)\")\n}\nvar str = tostr(obj)\nconsole.log(str)\n\n```\n\noutput\n\n```\n{\n  str: '\\'A\\' \"string\"\\r\\n.',\n  strO: '\\'A\\' \"string\" \\r\\nObject.',\n  num: 0,\n  numO: 0,\n  bool: true,\n  boolO: true,\n  undef: undefined,\n  reg: /re/g,\n  regO: /re/g,\n  date: new Date('Mon Dec 22 2014 16:09:46 GMT+0800 (CST)'),\n  date2: new Date('Wed Jan 01 2014 08:00:00 GMT+0800 (CST)'),\n  arr: [\n    1,\n    2,\n    3\n  ],\n  arrO: [\n    0,\n    '1',\n    true\n  ],\n  obj: {\n    name: 'fool2fish',\n    email: 'fool2fish@gmail.com'\n  },\n  objO: {\n  },\n  func: function (a, b) {\n    // some comment\n    return a + b\n  },\n  funcO: function anonymous(a\n/**/) {\nalert(a)\n}\n}\n\n```\n\n","repository":{"type":"git","url":"git@github.com:fool2fish/tostr.git"},"bugs":{"url":"https://github.com/fool2fish/tostr/issues"},"license":"MIT","versions":{"0.0.1":{"name":"tostr","version":"0.0.1","description":"Convert object to string.","homepage":"https://github.com/fool2fish/tostr","keywords":["util.inspect","inspect","inspector","toString"],"author":{"name":"fool2fish","email":"fool2fish@gmail.com"},"repository":{"type":"git","url":"git@github.com:fool2fish/tostr.git"},"preferGlobal":true,"license":"MIT","bugs":{"url":"https://github.com/fool2fish/tostr/issues"},"_id":"tostr@0.0.1","dist":{"shasum":"b02d141b4b1db0233b5e5b54b8c0117f5423c18f","tarball":"http://repository.ncinga.com/nexus/content/groups/npm-all/tostr/-/tostr-0.0.1.tgz","integrity":"sha512-4/YirMnvNI4yyuw6tRTQ4yLemdu7ynApjv5w8GLAkKQyBCqKT5Y+AbCo6k80AV5xUDF9RqLRq/ZtrGYvQNG0qg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDn6Bv6Tsnu5GTiNWNwLViqRbJsSPu4cyDu5+K27vgZmwIhAOBd8Jom4KA2KR8es+wCK1Y+L0+UauNDmjH4nrhr/wAu"}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"anonymous","email":"fool2fish@126.com"},"maintainers":[{"name":"anonymous","email":"fool2fish@126.com"}]},"0.1.0":{"name":"tostr","version":"0.1.0","description":"Convert object to string.","homepage":"https://github.com/fool2fish/tostr","keywords":["util.inspect","inspect","inspector","toString"],"author":{"name":"fool2fish","email":"fool2fish@gmail.com"},"repository":{"type":"git","url":"git@github.com:fool2fish/tostr.git"},"preferGlobal":true,"license":"MIT","bugs":{"url":"https://github.com/fool2fish/tostr/issues"},"_id":"tostr@0.1.0","dist":{"shasum":"7239ba1fa807c8100c9532cd231bf041ab779629","tarball":"http://repository.ncinga.com/nexus/content/groups/npm-all/tostr/-/tostr-0.1.0.tgz","integrity":"sha512-1YTd+Ua5nVO+wQ5fkQxetxj2pdj6JuMeu2WJwO2Q3Daph1wUtkRwScFwkRDosUVUc/exuVCtCp35tm/oPmgkvg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHr1C50jAfFVzlXXwmFLmD1cW4VRk0EaKtg0+t92hmi+AiB9S5V/t5jRNLrKGRII7FENw0pbGuXqTwgi+t/b5lyL1w=="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"anonymous","email":"fool2fish@126.com"},"maintainers":[{"name":"anonymous","email":"fool2fish@126.com"}]}},"name":"tostr","time":{"modified":"2022-06-27T18:55:20.404Z","created":"2014-06-17T06:09:02.523Z","0.0.1":"2014-06-17T06:09:02.523Z","0.1.0":"2014-12-22T08:14:37.158Z"},"readmeFilename":"README.md","homepage":"https://github.com/fool2fish/tostr"}