{"_id":"here","_rev":"8-49f1d071eafe1dc2373d938cb5cbe053","name":"here","description":"here-document on node.js","dist-tags":{"latest":"0.0.2"},"versions":{"0.0.1":{"name":"here","version":"0.0.1","description":"here-document on node.js","main":"lib/here.js","directories":{"test":"test"},"scripts":{"test":"node test/test.js"},"repository":{"type":"git","url":"git://github.com/cho45/node-here.js.git"},"keywords":["here","document","utility"],"author":{"name":"cho45"},"license":"MIT","readme":"node-here.js\n============\n\nhttps://github.com/cho45/node-here.js\n\nnode-here.js is here-document feature for node.js.\n\nSYNOPSYS\n========\n\nThis is implemeneted with block comment syntax.\n\n```\nvar here = require('here').here;\n\nvar string = here(/*\n  foo\n  bar\n  baz\n*/);\n\n```\n\nDESCRIPTION\n===========\n\n## here(/* document */)\n\n`here` function returns block comment on argument as string.\n\n","_id":"here@0.0.1","dist":{"shasum":"37cf080de1c7193629ded6496befc7e1bc99781d","tarball":"https://registry.npmjs.org/here/-/here-0.0.1.tgz","integrity":"sha512-6VjFRhXESLtlakwHY7ipAI8Irs2DHlZJIPjfI9pn6MqAq0RXdc4getYz3FEu9hyxwDHykZhNteSjYj1f5GGlzw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGGAQ7pwE2b/8nvJGzJcBMQ0HUFzIhdoLy65fc0bvlmQAiBh1gTe0Svyz6jloCOCXqrxHiG+AslgHt005fzw4m1ueA=="}]},"_npmVersion":"1.1.59","_npmUser":{"name":"cho45","email":"cho45@lowreal.net"},"maintainers":[{"name":"cho45","email":"cho45@lowreal.net"}]},"0.0.2":{"name":"here","version":"0.0.2","description":"here-document on node.js","main":"lib/here.js","directories":{"test":"test"},"scripts":{"test":"node test/test.js"},"repository":{"type":"git","url":"git://github.com/cho45/node-here.js.git"},"keywords":["here","document","utility"],"author":{"name":"cho45"},"license":"MIT","readme":"node-here.js\n============\n\nhttps://github.com/cho45/node-here.js\n\nnode-here.js is here-document feature for node.js.\n\nSYNOPSYS\n========\n\nThis is implemeneted with block comment syntax.\n\n```\nvar here = require('here').here;\n\nvar string = here(/*\n  foo\n  bar\n  baz\n*/);\n\n```\n\nDESCRIPTION\n===========\n\n## `here(/* document */)`\n\n`here` function returns block comment on argument as string like object.\n\n### Escape character\n\nAny characters can be escaped by backslash `\\` like following:\n\n```\nhere(/*\n  /\\* *\\/\n*/); //=> '/* */'\n\nhere(/* \\\\ */); //=> '\\\\'\n```\n\n### WYSIWYG\n\nIf a here document starts with `''/*`, it is wysiwyg mode which does not translate any escape characters.\n\n```\nhere(''/*\n  \\foo\\bar\\baz\n*/); //=> '\\\\fooo\\\\bar\\\\baz'\n```\n\nIn this case, string `*/` can be apeared in here document.\n\n### Returning value\n\n`here()` returns not string but String object. That is like following:\n\n```\nvar a = here(/* foobar */);\ntypeof a === 'object';\n\na.valueOf(); //=> 'foobar'\n\"Hello, \" + a; //=> 'Hello, foobar';\n```\n\n### Method unindent();\n\nReturning String object hav `unindent()` utility method which removes indent in a string.\n\n```\nhere(/*\n  foo\n    bar\n  baz\n*/).unindent()\n```\n\nis convert to following:\n\n```\nfoo\n  bar\nbaz\n```\n","_id":"here@0.0.2","dist":{"shasum":"69c1af3f02121f3d8788e02e84dc8b3905d71195","tarball":"https://registry.npmjs.org/here/-/here-0.0.2.tgz","integrity":"sha512-U7VYImCTcPoY27TSmzoiFsmWLEqQFaYNdpsPb9K0dXJhE6kufUqycaz51oR09CW85dDU9iWyy7At8M+p7hb3NQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDGNXK4+u4++h0Md0/YQgja4R5U/ImOpIpg4u5Wh0lwNQIhAKE0fXOD8yn0p3f2pD+bXhqGPaY3LAfwFOAUYIrSp4tU"}]},"_npmVersion":"1.1.59","_npmUser":{"name":"cho45","email":"cho45@lowreal.net"},"maintainers":[{"name":"cho45","email":"cho45@lowreal.net"}]}},"readme":"node-here.js\n============\n\nhttps://github.com/cho45/node-here.js\n\nnode-here.js is here-document feature for node.js.\n\nSYNOPSYS\n========\n\nThis is implemeneted with block comment syntax.\n\n```\nvar here = require('here').here;\n\nvar string = here(/*\n  foo\n  bar\n  baz\n*/);\n\n```\n\nDESCRIPTION\n===========\n\n## here(/* document */)\n\n`here` function returns block comment on argument as string.\n\n","maintainers":[{"name":"cho45","email":"cho45@lowreal.net"}],"time":{"modified":"2022-06-18T20:11:59.811Z","created":"2012-08-27T01:29:11.190Z","0.0.1":"2012-08-27T01:29:13.483Z","0.0.2":"2012-08-28T08:03:33.177Z"},"author":{"name":"cho45"},"repository":{"type":"git","url":"git://github.com/cho45/node-here.js.git"},"users":{"vunb":true}}