{"_id":"stream-tag","_rev":"5-9aa37fb28954d473a11880fd2aec35a3","name":"stream-tag","dist-tags":{"latest":"1.0.3"},"versions":{"1.0.0":{"name":"stream-tag","version":"1.0.0","description":"A tagged template literal utility for Node streams","main":"dist/lib/index.js","module":"dist/es/index.js","types":"dist/types/index.d.ts","sideEffects":false,"repository":{"type":"git","url":"https://github.com/kitten/stream-tag"},"author":{"name":"Phil Pluckthun","email":"phil@kitten.sh"},"license":"MIT","files":["src","dist","README.md","LICENSE.md"],"resolutions":{"babel-core":"^7.0.0-bridge.0"},"scripts":{"build:lib":"BABEL_ENV=commonjs babel --extensions '.ts' -d dist/lib src","build:es":"BABEL_ENV=esmodules babel --extensions '.ts' -d dist/es src","build:types":"tsc -p tsconfig.dts.json","build":"run-p build:lib build:es build:types","test:unit":"jest","test:types":"tsc","test":"run-s test:unit test:types"},"jest":{"transform":{"^.+\\.ts$":"<rootDir>/node_modules/babel-jest"},"collectCoverageFrom":["src/**/*.{ts,tsx}","!src/tests/**/*"],"testRegex":"(src/tests/.*(\\.|/)(test|spec))\\.(tsx?)$","moduleFileExtensions":["ts","js","json"]},"lint-staged":{"*.{js,jsx,ts,tsx,json,md}":["prettier --write","jest --bail --findRelatedTests","git add"]},"devDependencies":{"@babel/cli":"^7.0.0-beta.52","@babel/core":"^7.0.0-beta.52","@babel/plugin-proposal-class-properties":"^7.0.0-beta.52","@babel/plugin-transform-modules-commonjs":"^7.0.0-beta.52","@babel/preset-env":"^7.0.0-beta.52","@babel/preset-typescript":"^7.0.0-beta.52","@types/jest":"^23.1.4","@types/node":"^10.5.2","babel-core":"^7.0.0-bridge.0","babel-jest":"^22.1.0","babel-loader":"^7.1.5","babel-plugin-add-module-exports":"^0.2.1","husky":"^0.14.3","jest":"^22.1.0","lint-staged":"^7.2.0","npm-run-all":"^4.1.3","prettier":"^1.13.7","stream-to-string":"^1.1.0","typescript":"^2.9.2"},"licenseText":"MIT License\n\nCopyright (c) 2018 Phil Pluckthun\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"stream-tag@1.0.0","dist":{"shasum":"1456879ebdf4e3a6793554265d597724f97cbdec","tarball":"https://registry.npmjs.org/stream-tag/-/stream-tag-1.0.0.tgz","fileCount":19,"unpackedSize":20440,"integrity":"sha512-k5hmJQhuVNVo5+jqlirXohifYM+dlaADxY9G7lUmp53eTrxf+V7ag6RKglV3pbZoio0VqCstzWiJOC7UXRd5GQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICq0wg5Ph2zhQy5qCmISuEMpW33rEiSFlnN/9x3n0dIHAiB4yZvEV6sDcMmQJv+xvLYma+3u6z6GnHqHsFQmXM3J7g=="}]},"maintainers":[{"name":"philpl","email":"phil@kitten.sh"}],"_npmUser":{"name":"philpl","email":"phil@kitten.sh"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/stream-tag_1.0.0_1531063662059_0.7549275227525143"},"_hasShrinkwrap":false},"1.0.1":{"name":"stream-tag","version":"1.0.1","description":"A tagged template literal utility for Node streams","main":"dist/lib/index.js","module":"dist/es/index.js","types":"dist/types/index.d.ts","sideEffects":false,"repository":{"type":"git","url":"https://github.com/kitten/stream-tag"},"author":{"name":"Phil Pluckthun","email":"phil@kitten.sh"},"license":"MIT","files":["src","dist","README.md","LICENSE.md"],"keywords":["stream","streams","node","ssr","template","stream tag","stream-tag"],"resolutions":{"babel-core":"^7.0.0-bridge.0"},"scripts":{"build:lib":"BABEL_ENV=commonjs babel --extensions '.ts' -d dist/lib src","build:es":"BABEL_ENV=esmodules babel --extensions '.ts' -d dist/es src","build:types":"tsc -p tsconfig.dts.json","build":"run-p build:lib build:es build:types","test:unit":"jest","test:types":"tsc","test":"run-s test:unit test:types"},"jest":{"transform":{"^.+\\.ts$":"<rootDir>/node_modules/babel-jest"},"collectCoverageFrom":["src/**/*.{ts,tsx}","!src/tests/**/*"],"testRegex":"(src/tests/.*(\\.|/)(test|spec))\\.(tsx?)$","moduleFileExtensions":["ts","js","json"]},"lint-staged":{"*.{js,jsx,ts,tsx,json,md}":["prettier --write","jest --bail --findRelatedTests","git add"]},"devDependencies":{"@babel/cli":"^7.0.0-beta.52","@babel/core":"^7.0.0-beta.52","@babel/plugin-proposal-class-properties":"^7.0.0-beta.52","@babel/plugin-transform-modules-commonjs":"^7.0.0-beta.52","@babel/preset-env":"^7.0.0-beta.52","@babel/preset-typescript":"^7.0.0-beta.52","@types/jest":"^23.1.4","@types/node":"^10.5.2","babel-core":"^7.0.0-bridge.0","babel-jest":"^22.1.0","babel-loader":"^7.1.5","babel-plugin-add-module-exports":"^0.2.1","husky":"^0.14.3","jest":"^22.1.0","lint-staged":"^7.2.0","npm-run-all":"^4.1.3","prettier":"^1.13.7","stream-to-string":"^1.1.0","typescript":"^2.9.2"},"licenseText":"MIT License\n\nCopyright (c) 2018 Phil Pluckthun\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"stream-tag@1.0.1","dist":{"shasum":"cba238fac293360a6324f4f4c33748d393004567","tarball":"https://registry.npmjs.org/stream-tag/-/stream-tag-1.0.1.tgz","fileCount":19,"unpackedSize":20564,"integrity":"sha512-7FROIbHnrT955phhlgLwaIr2VWW6UsWSFxJlpotvE9O51HvnfEnvB0lGsYB1jvDKWuYEzq2AuxHXDNMnzvIblg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAd/lfCJOvsABcUtn0WzH0/NDsglWIgSaVYZqe/iUhyuAiATjhSpWy7SW67U+KGITpfZMx/K44rpQAf2Etl9Guni+w=="}]},"maintainers":[{"name":"philpl","email":"phil@kitten.sh"}],"_npmUser":{"name":"philpl","email":"phil@kitten.sh"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/stream-tag_1.0.1_1531063772963_0.3609656800646375"},"_hasShrinkwrap":false},"1.0.2":{"name":"stream-tag","version":"1.0.2","description":"A tagged template literal utility for Node streams","main":"dist/lib/index.js","module":"dist/es/index.js","types":"dist/types/index.d.ts","sideEffects":false,"repository":{"type":"git","url":"https://github.com/kitten/stream-tag"},"author":{"name":"Phil Pluckthun","email":"phil@kitten.sh"},"license":"MIT","files":["src","dist","README.md","LICENSE.md"],"keywords":["stream","streams","node","ssr","template","stream tag","stream-tag"],"resolutions":{"babel-core":"^7.0.0-bridge.0"},"scripts":{"build:lib":"BABEL_ENV=commonjs babel --extensions '.ts' -d dist/lib src","build:es":"BABEL_ENV=esmodules babel --extensions '.ts' -d dist/es src","build:types":"tsc -p tsconfig.dts.json","build":"run-p build:lib build:es build:types","test:unit":"jest","test:types":"tsc","test":"run-s test:unit test:types"},"jest":{"transform":{"^.+\\.ts$":"<rootDir>/node_modules/babel-jest"},"collectCoverageFrom":["src/**/*.{ts,tsx}","!src/tests/**/*"],"testRegex":"(src/tests/.*(\\.|/)(test|spec))\\.(tsx?)$","moduleFileExtensions":["ts","js","json"]},"lint-staged":{"*.{js,jsx,ts,tsx,json,md}":["prettier --write","jest --bail --findRelatedTests","git add"]},"devDependencies":{"@babel/cli":"^7.0.0-beta.52","@babel/core":"^7.0.0-beta.52","@babel/plugin-proposal-class-properties":"^7.0.0-beta.52","@babel/plugin-transform-modules-commonjs":"^7.0.0-beta.52","@babel/preset-env":"^7.0.0-beta.52","@babel/preset-typescript":"^7.0.0-beta.52","@types/jest":"^23.1.4","@types/node":"^10.5.2","babel-core":"^7.0.0-bridge.0","babel-jest":"^22.1.0","babel-loader":"^7.1.5","babel-plugin-add-module-exports":"^0.2.1","husky":"^0.14.3","jest":"^22.1.0","lint-staged":"^7.2.0","npm-run-all":"^4.1.3","prettier":"^1.13.7","stream-to-string":"^1.1.0","typescript":"^2.9.2"},"licenseText":"MIT License\n\nCopyright (c) 2018 Phil Pluckthun\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"stream-tag@1.0.2","dist":{"shasum":"0bf9a7dac7e61917bc93582765b6511ed592aa06","tarball":"https://registry.npmjs.org/stream-tag/-/stream-tag-1.0.2.tgz","fileCount":19,"unpackedSize":20919,"integrity":"sha512-8+2E0Bi9JROPewHRTNCd5IIkR4n3YYn8ZHBQg2wyehH+9b1Szf7jkKzmmDhw+bwhEGCN3jIAwjzJxolvcXtjrw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC6fCCu5p/kustiT+iVtKxLSUt8D0UdDOe9EC5QDX3ongIhANYEQnEci50CCCUKjXgZv9TJt3mi0f9YBnBq2QMxGXCq"}]},"maintainers":[{"name":"philpl","email":"phil@kitten.sh"}],"_npmUser":{"name":"philpl","email":"phil@kitten.sh"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/stream-tag_1.0.2_1531132457319_0.27615851355404075"},"_hasShrinkwrap":false},"1.0.3":{"name":"stream-tag","version":"1.0.3","description":"A tagged template literal utility for Node streams","main":"dist/lib/index.js","module":"dist/es/index.js","types":"dist/types/index.d.ts","sideEffects":false,"repository":{"type":"git","url":"https://github.com/kitten/stream-tag"},"author":{"name":"Phil Pluckthun","email":"phil@kitten.sh"},"license":"MIT","files":["src","dist","README.md","LICENSE.md"],"keywords":["stream","streams","node","ssr","template","stream tag","stream-tag"],"resolutions":{"babel-core":"^7.0.0-bridge.0"},"scripts":{"build:lib":"BABEL_ENV=commonjs babel --extensions '.ts' -d dist/lib src","build:es":"BABEL_ENV=esmodules babel --extensions '.ts' -d dist/es src","build:types":"tsc -p tsconfig.dts.json","build":"run-p build:lib build:es build:types","test:unit":"jest","test:types":"tsc","test":"run-s test:unit test:types"},"jest":{"transform":{"^.+\\.ts$":"<rootDir>/node_modules/babel-jest"},"collectCoverageFrom":["src/**/*.{ts,tsx}","!src/tests/**/*"],"testRegex":"(src/tests/.*(\\.|/)(test|spec))\\.(tsx?)$","moduleFileExtensions":["ts","js","json"]},"lint-staged":{"*.{js,jsx,ts,tsx,json,md}":["prettier --write","jest --bail --findRelatedTests","git add"]},"devDependencies":{"@babel/cli":"^7.0.0-beta.52","@babel/core":"^7.0.0-beta.52","@babel/plugin-proposal-class-properties":"^7.0.0-beta.52","@babel/plugin-transform-modules-commonjs":"^7.0.0-beta.52","@babel/preset-env":"^7.0.0-beta.52","@babel/preset-typescript":"^7.0.0-beta.52","@types/jest":"^23.1.4","@types/node":"^10.5.2","babel-core":"^7.0.0-bridge.0","babel-jest":"^22.1.0","babel-loader":"^7.1.5","babel-plugin-add-module-exports":"^0.2.1","husky":"^0.14.3","jest":"^22.1.0","lint-staged":"^7.2.0","npm-run-all":"^4.1.3","prettier":"^1.13.7","react":"^16.4.1","react-dom":"^16.4.1","stream-to-string":"^1.1.0","typescript":"^2.9.2"},"licenseText":"MIT License\n\nCopyright (c) 2018 Phil Pluckthun\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"stream-tag@1.0.3","dist":{"shasum":"f105859b3535a95bd9930a0058d28cb369f7bb57","tarball":"https://registry.npmjs.org/stream-tag/-/stream-tag-1.0.3.tgz","fileCount":21,"unpackedSize":24812,"integrity":"sha512-PFmjIJfi+NJIz52U2+g+/4viyq023CMTedZvWWbZ+yyoZ5q+JniLoLjei+YlcSnL0Vh0y9b+Ud8UbWjct7ilTA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDta+6Cg84pRHyd24chabL9do+cEom7PhFJzDIkTsyrRwIhAM4LDfDLuVhlDbSgyYQit4Scpgn52lQq0W2JTsQeb+sl"}]},"maintainers":[{"name":"philpl","email":"phil@kitten.sh"}],"_npmUser":{"name":"philpl","email":"phil@kitten.sh"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/stream-tag_1.0.3_1531179979457_0.9941869694917638"},"_hasShrinkwrap":false}},"time":{"created":"2018-07-08T15:27:42.058Z","1.0.0":"2018-07-08T15:27:42.110Z","modified":"2022-06-27T00:50:11.016Z","1.0.1":"2018-07-08T15:29:33.046Z","1.0.2":"2018-07-09T10:34:17.400Z","1.0.3":"2018-07-09T23:46:19.538Z"},"maintainers":[{"name":"philpl","email":"phil@kitten.sh"}],"description":"A tagged template literal utility for Node streams","repository":{"type":"git","url":"https://github.com/kitten/stream-tag"},"author":{"name":"Phil Pluckthun","email":"phil@kitten.sh"},"license":"MIT","readme":"# stream-tag\n\n> A tagged template literal utility for Node streams\n\nWorks in node.js and the browser, if streams are polyfilled.\n\nThis utility is a small tagged-template-literal function that enables\ninterpolation of strings, numbers, Buffers, promises, and streams\ninto a new stream.\n\nThis is highly useful when constructing stream templates that will be\nemitted by a server-side rendering service for instance. One example\nof such use-case is React's streamed SSR, where it's useful to combine\nits stream with other variables into an HTML output template.\n\n## Installation\n\n```sh\nyarn add stream-tag\n# or\nnpm install stream-tag\n```\n\n## Usage\n\n```js\nconst streamTag = require('stream-tag');\n\nconst stream = streamTag`\n  one\n  ${'two'}\n  ${3}\n  ${Promise.resolve('four')}\n  ${Promise.resolve(5)}\n  ${Buffer.from('six')}\n  ${streamTag`seven`}\n`;\n\n// This is what stream emits\nconst output = `\n  one\n  two\n  3\n  four\n  5\n  six\n  seven\n`;\n```\n\n## API\n\n### streamTag(templateStringArr, ...interpolations)\n\nCan be called as a tagged template literal. Returns a stream emitting the template\nwith all interpolations combined into the output.\n\n#### templateStringArr\n\nType: `string[]`\n\n#### interpolations\n\nType: `Array<void | string | number | Buffer | ReadableStream | Promise>`\n\nPromises may only resolve to all other values in the array above.\n\n## Related\n\nAfter writing this I noticed that there's already the execellent [stream-template](https://github.com/almost/stream-template)\nlibrary, which does about the same.\n\n## Licence\n\nMIT\n","readmeFilename":"README.md","keywords":["stream","streams","node","ssr","template","stream tag","stream-tag"]}