{"_id":"tsmlb","_rev":"3-e51ee1b17dfd06087e9af014b8642350","name":"tsmlb","description":"ES6 template string tag for multi-line blocks of text.","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"tsmlb","version":"1.0.0","description":"ES6 template string tag for multi-line blocks of text.","main":"index.js","scripts":{"test":"node ./test/spaces.js && node ./test/tabs.js"},"repository":{"type":"git","url":"git+https://github.com/misteroneill/tsmlb.git"},"keywords":["template","templatestring","es6","multi-line","outdent"],"author":{"name":"Pat O'Neill","email":"pgoneill@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/misteroneill/tsmlb/issues"},"homepage":"https://github.com/misteroneill/tsmlb#readme","gitHead":"b0ab8a5508d68b747bdf91e2fdfa433512d65478","_id":"tsmlb@1.0.0","_shasum":"c270e299d87da5f00f9a3249bc424b51a4214d67","_from":".","_npmVersion":"3.3.12","_nodeVersion":"4.2.2","_npmUser":{"name":"misteroneill","email":"pgoneill@gmail.com"},"dist":{"shasum":"c270e299d87da5f00f9a3249bc424b51a4214d67","tarball":"https://registry.npmjs.org/tsmlb/-/tsmlb-1.0.0.tgz","integrity":"sha512-FjFkSk95wsBE5x+HnfwTUMC88LTv+QwSiAH11OwwhIu01UjIZChnAxTUCSUiZ0B9Dks66CsK0CM8loqGhXDjgw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCaBvYhD5l+FHFyDWwfYv+nykt9XLLzO2UecekZN21ykwIhAKdkc8mm7MP3D5Ge12DiBswdwrqTsvoKg3lvoKtz7aNw"}]},"maintainers":[{"name":"misteroneill","email":"pgoneill@gmail.com"}]}},"readme":"# tsmlb\n\n> ES6 template string tag for multi-line blocks of text.\n\nThis template string tag allows you to create nicely formatted text blocks which are indented to match your code.\n\nFor example, by default, this...\n\n```js\nfunction x(y) {\n  return `\n    This ${y} is \n         some\n    very fancy\n         formatted\n    text!\n  `;\n}\n\nx('right here');\n```\n\n...yields...\n\n```\n\n    This right here is \n         some\n    very fancy\n         formatted\n    text!\n\n```\n\n...when you may have wanted...\n\n```\nThis right here is \n     some\nvery fancy\n     formatted\ntext!\n```\n\n...but you didn't want to write...\n\n```js\nfunction x(y) {\n  return `This ${y} is \n     some\nvery fancy\n     formatted\ntext!`;\n}\n\nx('right here');\n```\n\nThis is what `tsmlb` provides: the desired result above while maintaining the more readable code in the first block!\n\n```js\nvar tsmlb = require('tsmlb');\n\nfunction x(y) {\n  return tsmlb`\n    This ${y} is \n         some\n    very fancy\n         formatted\n    text!\n  `;\n}\n\nx('right here');\n```\n\n### Tabs or Spaces\n\n`tsmlb` supports multi-line strings indented with either spaces or tabs, but no accommodation is made for a mix of the two.\n\n### Compatibility\n\nSupport for template strings exists in Node as of 4.0.0, but this module is not tied to that engine in `package.json` because Babel users should be able to use it on many other platforms (including the browser).\n\n## Inspiration\n\nIf you didn't guess from the name, this module is inspired by Rod Vagg's [`tsml`](https://github.com/rvagg/tsml), which is similar except it takes a multi-line template string and returns a single line string. It's also very useful!\n\n## License\n\n`tsmlb` is Copyright (c) 2015 Pat O'Neill and licensed under the MIT license.\n","maintainers":[{"name":"misteroneill","email":"pgoneill@gmail.com"}],"time":{"modified":"2022-06-27T22:44:40.801Z","created":"2015-11-21T03:49:06.085Z","1.0.0":"2015-11-21T03:49:06.085Z"},"homepage":"https://github.com/misteroneill/tsmlb#readme","keywords":["template","templatestring","es6","multi-line","outdent"],"repository":{"type":"git","url":"git+https://github.com/misteroneill/tsmlb.git"},"author":{"name":"Pat O'Neill","email":"pgoneill@gmail.com"},"bugs":{"url":"https://github.com/misteroneill/tsmlb/issues"},"license":"MIT","readmeFilename":"README.md"}