{"_id":"mstring","_rev":"11-6e8740acdcc245b05e550dc32868de15","name":"mstring","description":"Multi-line strings module for node.js","dist-tags":{"latest":"0.1.2"},"versions":{"0.1.0":{"name":"mstring","version":"0.1.0","description":"Multi-line strings module for node.js","main":"mstring.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"git://github.com/rjrodger/mstring.git"},"keywords":["multi","line","multiline","string","strings"],"author":{"name":"Richard Rodger","url":"@rjrodger"},"license":"MIT","readme":"# mstring\n\n## Multi-line Strings Module for Node.js\n\nThis is a simple little module that lets you have multi-line strings in JavaScript.\n\nJust do this:\n\n```JavaScript\nvar M = require('mstring')\n\nvar mystring = M(function(){/***\nOntario\nMining and\nForestry\nGroup\n***/})\n```\n\nto get\n\n\n```JavaScript\nmystring == \"Ontario\\nMining and\\nForestry\\nGroup\"\n```\n\nAnd that's pretty much it.\n\n## Install\n\n```sh\nnpm install mstring\n```\n\n## Format\n\nAn empty anonymous function, containing a single multi-line comment\nblock. The comment block should start and end with <code>/***</code>\nand <code>***/</code>. The first and last newlines of the comment are ignored.\n\n\n## How it Works\n\nIn Node.js, you can call the <code>.toString</code> method of a\nfunction, and it will give you the source code of the function\ndefinition, including any comments. A regular expression grabs the\ncontent of the comment.\n\nYes, it's a hack. Inspired by a throwaway comment from [Dominic Tarr](http://dominictarr.com/).\n\n\n\n","_id":"mstring@0.1.0","dist":{"shasum":"69dec3bf2d330e23574cc2a81674f2259aa7a111","tarball":"https://registry.npmjs.org/mstring/-/mstring-0.1.0.tgz","integrity":"sha512-u8bLvrIT4t2/txOEerPvOHAB2tN4fJjOwgea0NMpjoP61FFLR3DtB6oWhmnIKf9/jX01vTtxo+HHa8c5TlORQQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBFoG1s6RNNEvCwT7sA7iYRph4eJWV1OjTA9XISCO4IuAiACYq9g4ppjRTaLhtU8WCqRz2pu8EYDQX2XsChSn/U1KA=="}]},"_npmVersion":"1.1.61","_npmUser":{"name":"rjrodger","email":"richard.rodger@nearform.com"},"maintainers":[{"name":"rjrodger","email":"richard.rodger@nearform.com"}]},"0.1.1":{"name":"mstring","version":"0.1.1","description":"Multi-line strings module for node.js","main":"mstring.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"git://github.com/rjrodger/mstring.git"},"keywords":["multi","line","multiline","string","strings"],"author":{"name":"Richard Rodger","url":"@rjrodger"},"contributors":[{"name":"Richard Rodger","url":"http://richardrodger.com/"},{"name":"David Kaye","url":"@dfkaye"},{"name":"Dominic Tarr"}],"license":"MIT","readme":"# mstring\n\n## Multi-line Strings Module for Node.js\n\nThis is a simple little module that lets you have multi-line strings in JavaScript.\n\nJust do this:\n\n```JavaScript\nvar M = require('mstring')\n\nvar mystring = M(function(){\n  /***\n  Ontario\n  Mining and\n  Forestry\n  Group\n  ***/})\n```\n\nto get\n\n\n```JavaScript\nmystring == \"Ontario\\nMining and\\nForestry\\nGroup\"\n```\n\nAnd that's pretty much it.\n\n## Install\n\n```sh\nnpm install mstring\n```\n\n## Format\n\nAn empty anonymous function, containing a single multi-line comment\nblock. The comment block should start and end with <code>/***</code>\nand <code>***/</code>. The first and last newlines of the comment are ignored, as is any indentation.\n\n\n## How it Works\n\nIn Node.js, you can call the <code>.toString</code> method of a\nfunction, and it will give you the source code of the function\ndefinition, including any comments. A regular expression grabs the\ncontent of the comment.\n\nYes, it's a hack. Inspired by a throwaway comment from [Dominic Tarr](http://dominictarr.com/).\n\n\n\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/rjrodger/mstring/issues"},"_id":"mstring@0.1.1","dist":{"shasum":"8c0835e09217996bffe9b235e858c674af103bb4","tarball":"https://registry.npmjs.org/mstring/-/mstring-0.1.1.tgz","integrity":"sha512-Z4lHxm7FEImqS3nEU1q7Tthai6TAYvcjn9SMND+WC/PgyRw0st3HPzfS6RHcq9Hnl6m23DndIlT/Z4fuOBGPCg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIByZ5xrjIt6nEQZTgkM5rQFDRbKDjWSap37Apa6GD2nTAiEAtOSOaos3DU2Zm0RjZFNLDuWT+9L0LSwWoMYV3BFpPjg="}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"rjrodger","email":"richard.rodger@nearform.com"},"maintainers":[{"name":"rjrodger","email":"richard.rodger@nearform.com"}]},"0.1.2":{"name":"mstring","version":"0.1.2","description":"Multi-line strings module for node.js","main":"mstring.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"git://github.com/rjrodger/mstring.git"},"keywords":["multi","line","multiline","string","strings"],"author":{"name":"Richard Rodger","url":"@rjrodger"},"contributors":[{"name":"Richard Rodger","url":"http://richardrodger.com/"},{"name":"David Kaye","url":"@dfkaye"},{"name":"Dominic Tarr"}],"license":"MIT","readme":"# mstring\n\n## Multi-line Strings Module for Node.js\n\nThis is a simple little module that lets you have multi-line strings in JavaScript.\n\nJust do this:\n\n```JavaScript\nvar M = require('mstring')\n\nvar mystring = M(function(){\n  /***\n  Ontario\n  Mining and\n  Forestry\n  Group\n  ***/})\n```\n\nto get\n\n\n```JavaScript\nmystring == \"Ontario\\nMining and\\nForestry\\nGroup\"\n```\n\nAnd that's pretty much it.\n\n## Install\n\n```sh\nnpm install mstring\n```\n\n## Format\n\nAn empty anonymous function, containing a single multi-line comment\nblock. The comment block should start and end with <code>/***</code>\nand <code>***/</code>. The first and last newlines of the comment are ignored, as is any indentation.\n\n\n## How it Works\n\nIn Node.js, you can call the <code>.toString</code> method of a\nfunction, and it will give you the source code of the function\ndefinition, including any comments. A regular expression grabs the\ncontent of the comment. \n\nYes, it's a hack. Inspired by a throwaway comment from [Dominic Tarr](http://dominictarr.com/).\n\n\n\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/rjrodger/mstring/issues"},"homepage":"https://github.com/rjrodger/mstring","_id":"mstring@0.1.2","dist":{"shasum":"8a268b1b2deade1e58e4d1eba5484a9fefafaf02","tarball":"https://registry.npmjs.org/mstring/-/mstring-0.1.2.tgz","integrity":"sha512-R0GcIi2lIgyV8jM3l9JEfvA6xt6Q9jt/FjMuY250QLmLp67SlaKlafctZIxHzjv1nbJbdMJYwljnJHJ/VkAk3w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCZFc/CcDAr3/dy/FZpqiDehNzB9DG5tctZFrtcBa6CZgIhAMu7vqyiJ0O/xPbMgLxid9PEk7Abh5eeF6/Pg8fFKud6"}]},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"rjrodger","email":"richard.rodger@nearform.com"},"maintainers":[{"name":"rjrodger","email":"richard.rodger@nearform.com"}]}},"readme":"# mstring\n\n## Multi-line Strings Module for Node.js\n\nThis is a simple little module that lets you have multi-line strings in JavaScript.\n\nJust do this:\n\n```JavaScript\nvar M = require('mstring')\n\nvar mystring = M(function(){/***\nOntario\nMining and\nForestry\nGroup\n***/})\n```\n\nto get\n\n\n```JavaScript\nmystring == \"Ontario\\nMining and\\nForestry\\nGroup\"\n```\n\nAnd that's pretty much it.\n\n## Install\n\n```sh\nnpm install mstring\n```\n\n## Format\n\nAn empty anonymous function, containing a single multi-line comment\nblock. The comment block should start and end with <code>/***</code>\nand <code>***/</code>. The first and last newlines of the comment are ignored.\n\n\n## How it Works\n\nIn Node.js, you can call the <code>.toString</code> method of a\nfunction, and it will give you the source code of the function\ndefinition, including any comments. A regular expression grabs the\ncontent of the comment.\n\nYes, it's a hack. Inspired by a throwaway comment from [Dominic Tarr](http://dominictarr.com/).\n\n\n\n","maintainers":[{"name":"rjrodger","email":"richard.rodger@nearform.com"}],"time":{"modified":"2022-06-20T12:27:21.564Z","created":"2012-11-12T23:13:38.056Z","0.1.0":"2012-11-12T23:13:40.405Z","0.1.1":"2013-10-09T14:18:50.989Z","0.1.2":"2014-01-07T17:06:37.361Z"},"author":{"name":"Richard Rodger","url":"@rjrodger"},"repository":{"type":"git","url":"git://github.com/rjrodger/mstring.git"},"users":{"rjrodger":true,"f124275809":true}}