{"_id":"@drtrt/inject-file-fragments","_rev":"23-0c4a3b01e4cac128eea077292d58604a","name":"@drtrt/inject-file-fragments","dist-tags":{"latest":"3.1.1"},"versions":{"1.1.0":{"name":"@drtrt/inject-file-fragments","version":"1.1.0","author":{"name":"drtrt-org"},"license":"MIT","_id":"@drtrt/inject-file-fragments@1.1.0","maintainers":[{"name":"drtrt-admin","email":"npm@drtrt.com"}],"homepage":"https://github.com/drtrt-org/inject-file-fragments#readme","bugs":{"url":"https://github.com/drtrt-org/inject-file-fragments/issues"},"bin":{"inject-file-fragments":"cli.js"},"dist":{"shasum":"88f1443aea23669b0ef61e19e95e931fbae8a5dc","tarball":"https://registry.npmjs.org/@drtrt/inject-file-fragments/-/inject-file-fragments-1.1.0.tgz","fileCount":6,"integrity":"sha512-OSubJbM8lORLKJGm+n1zQ3SoBdUBt3WKBZ9WnGz/Wl4r1P5fO6wOLpMTFPLLWJnf4uOITmZtqolmSpqE46WqQg==","signatures":[{"sig":"MEYCIQChsVqwwZ2l8q9Tvw+GsIXUy6n2xbbKl3EH5WnlNRM1uAIhAIQ0/+7A2h0ZildU/2TISZL+5mzH28Ug6jxaLuaBZ0Mf","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5165},"main":"index.js","engines":{"node":">=16.0.0 <20"},"exports":{".":{"import":"./index.mjs","require":"./index.js"}},"gitHead":"45cbb304842d62b3fb37a8c6f5b7fa56cba10720","scripts":{"test":"node --experimental-vm-modules node_modules/jest/bin/jest.js","format":"prettier --write .","pretest":"rimraf testAssets/generated && mkdirp testAssets/generated","commitlint":"commitlint --edit","test:watch":"npm test -- --watch","semantic-release":"semantic-release"},"_npmUser":{"name":"drtrt-admin","email":"npm@drtrt.com"},"deprecated":"This version has a critical bug. Please upgrade to 1.2.2 or later.","repository":{"url":"git+https://github.com/drtrt-org/inject-file-fragments.git","type":"git"},"_npmVersion":"10.2.1","description":"A simple NPM package that allows you to inject the contents of one file into another, replacing a designated placeholder.","directories":{},"_nodeVersion":"18.18.2","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.6.1","husky":"^8.0.3","mkdirp":"^3.0.1","rimraf":"^5.0.5","prettier":"^3.0.0","@commitlint/cli":"^17.8.0","semantic-release":"^22.0.5","@semantic-release/git":"^10.0.1","eslint-config-prettier":"^8.8.0","@commitlint/config-conventional":"^17.8.0"},"_npmOperationalInternal":{"tmp":"tmp/inject-file-fragments_1.1.0_1697924459350_0.8511916819386143","host":"s3://npm-registry-packages"}},"1.2.0":{"name":"@drtrt/inject-file-fragments","version":"1.2.0","author":{"name":"drtrt-org"},"license":"MIT","_id":"@drtrt/inject-file-fragments@1.2.0","maintainers":[{"name":"drtrt-admin","email":"npm@drtrt.com"}],"homepage":"https://github.com/drtrt-org/inject-file-fragments#readme","bugs":{"url":"https://github.com/drtrt-org/inject-file-fragments/issues"},"bin":{"inject-file-fragments":"cli.js"},"dist":{"shasum":"0eb5c8fc93e19baf9d28856f105b8f4b00ea83b7","tarball":"https://registry.npmjs.org/@drtrt/inject-file-fragments/-/inject-file-fragments-1.2.0.tgz","fileCount":6,"integrity":"sha512-6G2bZoVjosNx2blM8ArYXK6sElOozWXh9B5csQNr/mHU9JZkQyFxA21gWlivmWEveSHVAhOImN+nzSQ2V1BOug==","signatures":[{"sig":"MEYCIQClubr767uDx4DF5B+F+ibzjRkRD8fOl4NGMQEbqOhUAgIhAJ1XUnAt1e+MRDMqNdL/vx6nwIfkwiMJbTlZS36TOwlu","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5158},"main":"index.js","engines":{"node":">=16.0.0 <20"},"exports":{".":{"import":"./index.mjs","require":"./index.js"}},"gitHead":"0ad2260a2009c644b36047b423f9081c6ea9ab6b","scripts":{"test":"node --experimental-vm-modules node_modules/jest/bin/jest.js","format":"prettier --write .","pretest":"rimraf testAssets/generated && mkdirp testAssets/generated","commitlint":"commitlint --edit","test:watch":"npm test -- --watch","semantic-release":"semantic-release"},"_npmUser":{"name":"drtrt-admin","email":"npm@drtrt.com"},"deprecated":"This version has a critical bug. Please upgrade to 1.2.2 or later.","repository":{"url":"git+https://github.com/drtrt-org/inject-file-fragments.git","type":"git"},"_npmVersion":"10.2.1","description":"A simple NPM package that allows you to inject the contents of one file into another, replacing a designated placeholder.","directories":{},"_nodeVersion":"18.18.2","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.6.1","husky":"^8.0.3","mkdirp":"^3.0.1","rimraf":"^5.0.5","prettier":"^3.0.0","@commitlint/cli":"^17.8.0","semantic-release":"^22.0.5","@semantic-release/git":"^10.0.1","eslint-config-prettier":"^8.8.0","@commitlint/config-conventional":"^17.8.0"},"_npmOperationalInternal":{"tmp":"tmp/inject-file-fragments_1.2.0_1697980635479_0.8326057750272582","host":"s3://npm-registry-packages"}},"1.2.1":{"name":"@drtrt/inject-file-fragments","version":"1.2.1","author":{"name":"drtrt-org"},"license":"MIT","_id":"@drtrt/inject-file-fragments@1.2.1","maintainers":[{"name":"drtrt-admin","email":"npm@drtrt.com"}],"homepage":"https://github.com/drtrt-org/inject-file-fragments#readme","bugs":{"url":"https://github.com/drtrt-org/inject-file-fragments/issues"},"bin":{"inject-file-fragments":"cli.js"},"dist":{"shasum":"511cda73a41585db1cee185716bc19c4af8b03de","tarball":"https://registry.npmjs.org/@drtrt/inject-file-fragments/-/inject-file-fragments-1.2.1.tgz","fileCount":6,"integrity":"sha512-lBO3nKx00jGR/2tU+Z2eANyCFO6mog5fH7W8dwke6ENVf4UBYSQEEx8cXbXlOW08aga1jyPEltkQRH1juRghLw==","signatures":[{"sig":"MEYCIQCNN9nADxfNcKjYyY1ipdEFzP788CQrKBjBwuV/rhi7vwIhAORBcqcggDVGup4HtsfzCgrCeKiqRRAB45P4jZpP36TU","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":7848},"main":"index.js","engines":{"node":">=16.0.0 <20"},"exports":{".":{"import":"./index.mjs","require":"./index.js"}},"gitHead":"69b2b45556e793b14de359264cc4da1b6c5b2089","scripts":{"test":"node --experimental-vm-modules node_modules/jest/bin/jest.js","format":"prettier --write .","pretest":"rimraf testAssets/generated && mkdirp testAssets/generated","commitlint":"commitlint --edit","test:watch":"npm test -- --watch","semantic-release":"semantic-release"},"_npmUser":{"name":"drtrt-admin","email":"npm@drtrt.com"},"deprecated":"This version has a critical bug. Please upgrade to 1.2.2 or later.","repository":{"url":"git+https://github.com/drtrt-org/inject-file-fragments.git","type":"git"},"_npmVersion":"10.2.1","description":"A simple NPM package that allows you to inject the contents of one file into another, replacing a designated placeholder.","directories":{},"_nodeVersion":"18.18.2","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.6.1","husky":"^8.0.3","mkdirp":"^3.0.1","rimraf":"^5.0.5","prettier":"^3.0.0","@commitlint/cli":"^17.8.0","semantic-release":"^22.0.5","@semantic-release/git":"^10.0.1","eslint-config-prettier":"^8.8.0","@commitlint/config-conventional":"^17.8.0"},"_npmOperationalInternal":{"tmp":"tmp/inject-file-fragments_1.2.1_1698009019679_0.6806155952295316","host":"s3://npm-registry-packages"}},"1.2.2":{"name":"@drtrt/inject-file-fragments","version":"1.2.2","author":{"name":"drtrt-org"},"license":"MIT","_id":"@drtrt/inject-file-fragments@1.2.2","maintainers":[{"name":"drtrt-admin","email":"npm@drtrt.com"}],"homepage":"https://github.com/drtrt-org/inject-file-fragments#readme","bugs":{"url":"https://github.com/drtrt-org/inject-file-fragments/issues"},"bin":{"inject-file-fragments":"cli.js"},"dist":{"shasum":"0b62f97696c02b7dade8c8a9df164a0410132f81","tarball":"https://registry.npmjs.org/@drtrt/inject-file-fragments/-/inject-file-fragments-1.2.2.tgz","fileCount":6,"integrity":"sha512-kk1FgaoQrSflDu+OhgUhN1/zoSsxbb8YujnFwdS5P2SKTlO9G27pvU7Ttx2jNhhkGpjUDs43t3kP9YSsQQVR4g==","signatures":[{"sig":"MEUCIDX/LF3flMjVV0OMGVmf7Mt0UwxslwANHHXOWjylXKOCAiEA/5DVseowf7MRzrSKG3+bjv/0xmcHLOtQg/tRBjhpuzY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":7848},"main":"index.js","engines":{"node":">=16.0.0 <20"},"exports":{".":{"import":"./index.mjs","require":"./index.js"}},"gitHead":"f9c681767fdb4d563b914057b2206ceaec2612a1","scripts":{"test":"node --experimental-vm-modules node_modules/jest/bin/jest.js","format":"prettier --write .","pretest":"rimraf testAssets/generated && mkdirp testAssets/generated","commitlint":"commitlint --edit","test:watch":"npm test -- --watch","semantic-release":"semantic-release"},"_npmUser":{"name":"drtrt-admin","email":"npm@drtrt.com"},"repository":{"url":"git+https://github.com/drtrt-org/inject-file-fragments.git","type":"git"},"_npmVersion":"10.2.1","description":"A simple NPM package that allows you to inject the contents of one file into another, replacing a designated placeholder.","directories":{},"_nodeVersion":"18.18.2","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.6.1","husky":"^8.0.3","mkdirp":"^3.0.1","rimraf":"^5.0.5","prettier":"^3.0.0","@commitlint/cli":"^17.8.0","semantic-release":"^22.0.5","@semantic-release/git":"^10.0.1","eslint-config-prettier":"^8.8.0","@commitlint/config-conventional":"^17.8.0"},"_npmOperationalInternal":{"tmp":"tmp/inject-file-fragments_1.2.2_1698060546409_0.8451791912991833","host":"s3://npm-registry-packages"}},"1.2.3":{"name":"@drtrt/inject-file-fragments","version":"1.2.3","author":{"name":"drtrt-org"},"license":"MIT","_id":"@drtrt/inject-file-fragments@1.2.3","maintainers":[{"name":"drtrt-admin","email":"npm@drtrt.com"}],"homepage":"https://github.com/drtrt-org/inject-file-fragments#readme","bugs":{"url":"https://github.com/drtrt-org/inject-file-fragments/issues"},"bin":{"inject-file-fragments":"cli.js"},"dist":{"shasum":"40a722469186d0d8f5101b0d4250e170cbda8012","tarball":"https://registry.npmjs.org/@drtrt/inject-file-fragments/-/inject-file-fragments-1.2.3.tgz","fileCount":7,"integrity":"sha512-BrHatPshAms3Jnym4xxMlFTFNwdTFlFPvsRty4ADoLaNSFZORIVEVHiCKLBcgdxnAV189dFE4NyDANv6Cvi/sQ==","signatures":[{"sig":"MEUCIDXiKDnjBzi6cRSJdWjPfmKznrrihFIHzWFifvYovVbhAiEA767DecVvpILGdnpm1/WvBTOLUjuxmFRpsRjaaYC2BvM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":7852},"main":"./src/index.js","module":"./src/index.mjs","engines":{"node":">=16.0.0 <20"},"exports":{".":{"import":"./src/index.mjs","require":"./src/index.js"}},"gitHead":"54290810d32536e3948be5a5d9dd7c67a899859e","scripts":{"test":"node --experimental-vm-modules node_modules/jest/bin/jest.js","format":"prettier --write .","pretest":"rimraf testAssets/generated && mkdirp testAssets/generated","commitlint":"commitlint --edit","test:watch":"npm test -- --watch","semantic-release":"semantic-release"},"_npmUser":{"name":"drtrt-admin","email":"npm@drtrt.com"},"repository":{"url":"git+https://github.com/drtrt-org/inject-file-fragments.git","type":"git"},"_npmVersion":"10.2.1","description":"A simple NPM package that allows you to inject the contents of one file into another, replacing a designated placeholder.","directories":{},"_nodeVersion":"18.18.2","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.6.1","husky":"^8.0.3","mkdirp":"^3.0.1","rimraf":"^5.0.5","prettier":"^3.0.0","@commitlint/cli":"^17.8.0","semantic-release":"^22.0.5","@semantic-release/git":"^10.0.1","eslint-config-prettier":"^8.8.0","@commitlint/config-conventional":"^17.8.0"},"_npmOperationalInternal":{"tmp":"tmp/inject-file-fragments_1.2.3_1698093930919_0.5781931090708214","host":"s3://npm-registry-packages"}},"1.2.4":{"name":"@drtrt/inject-file-fragments","version":"1.2.4","author":{"name":"drtrt-org"},"license":"MIT","_id":"@drtrt/inject-file-fragments@1.2.4","maintainers":[{"name":"drtrt-admin","email":"npm@drtrt.com"}],"homepage":"https://github.com/drtrt-org/inject-file-fragments#readme","bugs":{"url":"https://github.com/drtrt-org/inject-file-fragments/issues"},"bin":{"inject-file-fragments":"cli.js"},"dist":{"shasum":"b5b4fd6059d864a3c34101cf5564b8cf261df00a","tarball":"https://registry.npmjs.org/@drtrt/inject-file-fragments/-/inject-file-fragments-1.2.4.tgz","fileCount":7,"integrity":"sha512-z8+1xUIz3dlB8tLha11h3m+Hpg9ssohdpVhcuaRPPa4icUpvZj2tFFc1MASMG2omsWhbMAjGV+edDRtBPW/f1Q==","signatures":[{"sig":"MEUCIQCD4C7TCkQ01Xz5kCnJPX4JRsMA0BdJRZVcPR/QbSl0pAIgDjOntTJh6HdVUyZPJ2y6esNokWkVWV7UJb2JHZKKyo4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":7856},"main":"./src/index.js","module":"./src/index.mjs","engines":{"node":">=16.0.0 <20"},"exports":{".":{"import":"./src/index.mjs","require":"./src/index.js"}},"gitHead":"2f388cb02b95a153d320afc93c2e6665d3e3cb08","scripts":{"test":"node --experimental-vm-modules node_modules/jest/bin/jest.js","format":"prettier --write .","pretest":"rimraf testAssets/generated && mkdirp testAssets/generated","commitlint":"commitlint --edit","test:watch":"npm test -- --watch","semantic-release":"semantic-release"},"_npmUser":{"name":"drtrt-admin","email":"npm@drtrt.com"},"repository":{"url":"git+https://github.com/drtrt-org/inject-file-fragments.git","type":"git"},"_npmVersion":"10.2.1","description":"A simple NPM package that allows you to inject the contents of one file into another, replacing a designated placeholder.","directories":{},"_nodeVersion":"18.18.2","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.6.1","husky":"^8.0.3","mkdirp":"^3.0.1","rimraf":"^5.0.5","prettier":"^3.0.0","@commitlint/cli":"^17.8.0","semantic-release":"^22.0.5","@semantic-release/git":"^10.0.1","eslint-config-prettier":"^8.8.0","@commitlint/config-conventional":"^17.8.0"},"_npmOperationalInternal":{"tmp":"tmp/inject-file-fragments_1.2.4_1698094506871_0.8187724843177291","host":"s3://npm-registry-packages"}},"1.3.0":{"name":"@drtrt/inject-file-fragments","version":"1.3.0","author":{"name":"drtrt-org"},"license":"MIT","_id":"@drtrt/inject-file-fragments@1.3.0","maintainers":[{"name":"drtrt-admin","email":"npm@drtrt.com"}],"homepage":"https://github.com/drtrt-org/inject-file-fragments#readme","bugs":{"url":"https://github.com/drtrt-org/inject-file-fragments/issues"},"bin":{"inject-file-fragments":"cli.js"},"dist":{"shasum":"e9508caa389905c8e195836c86e104659471b228","tarball":"https://registry.npmjs.org/@drtrt/inject-file-fragments/-/inject-file-fragments-1.3.0.tgz","fileCount":8,"integrity":"sha512-/HFbr/v1D/JRb/QdmVPX11bzFtmQoBswxKgk+B3PRRQKbdmBJdKiArWR28/vS38XUZy1wdL0P4he818r0h2xLA==","signatures":[{"sig":"MEUCIF014x3VHcNq5kRKwGgH/hcLhG7ay+VSFeQ3GFmi4CbRAiEAseBZvco32DIVSjwiCrjxSy6l7SllvTOimozTy5Eagiw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":8496},"main":"./src/index.js","types":".src/index.d.ts","module":"./src/index.mjs","engines":{"node":">=16.0.0 <20"},"exports":{".":{"import":"./src/index.mjs","require":"./src/index.js"}},"gitHead":"06549dde0febcb1f19e7c84e548853948eda763e","scripts":{"test":"node --experimental-vm-modules node_modules/jest/bin/jest.js","format":"prettier --write .","pretest":"rimraf testAssets/generated && mkdirp testAssets/generated","commitlint":"commitlint --edit","test:watch":"npm test -- --watch","semantic-release":"semantic-release"},"_npmUser":{"name":"drtrt-admin","email":"npm@drtrt.com"},"repository":{"url":"git+https://github.com/drtrt-org/inject-file-fragments.git","type":"git"},"_npmVersion":"10.2.1","description":"A simple NPM package that allows you to inject the contents of one file into another, replacing a designated placeholder.","directories":{},"_nodeVersion":"18.18.2","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.6.1","husky":"^8.0.3","mkdirp":"^3.0.1","rimraf":"^5.0.5","prettier":"^3.0.0","@commitlint/cli":"^17.8.0","semantic-release":"^22.0.5","@semantic-release/git":"^10.0.1","eslint-config-prettier":"^8.8.0","@commitlint/config-conventional":"^17.8.0"},"_npmOperationalInternal":{"tmp":"tmp/inject-file-fragments_1.3.0_1698181921898_0.5057099870567658","host":"s3://npm-registry-packages"}},"1.4.0":{"name":"@drtrt/inject-file-fragments","version":"1.4.0","author":{"name":"drtrt-org"},"license":"MIT","_id":"@drtrt/inject-file-fragments@1.4.0","maintainers":[{"name":"drtrt-admin","email":"npm@drtrt.com"}],"homepage":"https://github.com/drtrt-org/inject-file-fragments#readme","bugs":{"url":"https://github.com/drtrt-org/inject-file-fragments/issues"},"bin":{"inject-file-fragments":"cli.js"},"dist":{"shasum":"00d778553c18ef3e9a1c5d7833c7a8a50e9ebbc2","tarball":"https://registry.npmjs.org/@drtrt/inject-file-fragments/-/inject-file-fragments-1.4.0.tgz","fileCount":8,"integrity":"sha512-k1agfAttYwdqXUNmcEE48HNswzoagR70MbNhGYOuYi4ZcOVxNum3d8n0kwpCL7ANlAUH5KNqvjisDuzJkOcFmA==","signatures":[{"sig":"MEYCIQC/y6LiuYJr2iz10kE2kqrptLyycfxchXR9Xo8b0WIXKAIhAL58TDRKda5/6DiLkhQULihXbQIlTHihkN2+quHwSXPf","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":8770},"main":"./src/index.js","types":".src/index.d.ts","module":"./src/index.mjs","engines":{"node":">=16.0.0 <20"},"exports":{".":{"import":"./src/index.mjs","require":"./src/index.js"}},"gitHead":"61ea9f8171ef56d617501eaa6e2c76899016492b","scripts":{"test":"node --experimental-vm-modules node_modules/jest/bin/jest.js","format":"prettier --write .","pretest":"rimraf testAssets/generated && mkdirp testAssets/generated","commitlint":"commitlint --edit","test:watch":"npm test -- --watch","semantic-release":"semantic-release --dry-run"},"_npmUser":{"name":"drtrt-admin","email":"npm@drtrt.com"},"repository":{"url":"git+https://github.com/drtrt-org/inject-file-fragments.git","type":"git"},"_npmVersion":"10.2.1","description":"A simple NPM package that allows you to inject the contents of one file into another, replacing a designated placeholder.","directories":{},"_nodeVersion":"18.18.2","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.6.1","husky":"^8.0.3","mkdirp":"^3.0.1","rimraf":"^5.0.5","prettier":"^3.0.0","@commitlint/cli":"^17.8.0","semantic-release":"^22.0.5","@semantic-release/git":"^10.0.1","eslint-config-prettier":"^8.8.0","@semantic-release/github":"^9.2.1","@semantic-release/changelog":"^6.0.3","@commitlint/config-conventional":"^17.8.0"},"_npmOperationalInternal":{"tmp":"tmp/inject-file-fragments_1.4.0_1698242751562_0.013107075674987811","host":"s3://npm-registry-packages"}},"1.4.1":{"name":"@drtrt/inject-file-fragments","version":"1.4.1","author":{"name":"drtrt-org"},"license":"MIT","_id":"@drtrt/inject-file-fragments@1.4.1","maintainers":[{"name":"drtrt-admin","email":"npm@drtrt.com"}],"homepage":"https://github.com/drtrt-org/inject-file-fragments#readme","bugs":{"url":"https://github.com/drtrt-org/inject-file-fragments/issues"},"bin":{"inject-file-fragments":"cli.js"},"dist":{"shasum":"2c06d4edc49ec2efd44beead545b2e015e2ff6e3","tarball":"https://registry.npmjs.org/@drtrt/inject-file-fragments/-/inject-file-fragments-1.4.1.tgz","fileCount":8,"integrity":"sha512-+OpeiD8z3I8cI4WslF6XZA3eh2B14iQZl+yCF4oehAhWASY0hTJyhDPs4DDv+GRMH2DFiXpPwbGHrMWweZvR6Q==","signatures":[{"sig":"MEUCIGscw28fDjNSXaE0Y6JL3QpXZELaodWENqwI2zAeYRGHAiEAt+wC3QNCDtp6F7RjF5h/GNacBPqSoOxda3ULTl3O2u8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":8772},"main":"./src/index.js","types":".src/index.d.ts","module":"./src/index.mjs","engines":{"node":">=16.0.0 <20"},"exports":{".":{"import":"./src/index.mjs","require":"./src/index.js"}},"gitHead":"f3b9777698844a5417b728b6db144ab3b658f68e","scripts":{"test":"node --experimental-vm-modules node_modules/jest/bin/jest.js","format":"prettier --write .","pretest":"rimraf testAssets/generated && mkdirp testAssets/generated","commitlint":"commitlint --edit","test:watch":"npm test -- --watch","semantic-release":"semantic-release --dry-run"},"_npmUser":{"name":"drtrt-admin","email":"npm@drtrt.com"},"repository":{"url":"git+https://github.com/drtrt-org/inject-file-fragments.git","type":"git"},"_npmVersion":"10.2.1","description":"A simple NPM package that allows you to inject the contents of one file into another, replacing a designated placeholder.","directories":{},"_nodeVersion":"18.18.2","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.6.1","husky":"^8.0.3","mkdirp":"^3.0.1","rimraf":"^5.0.5","prettier":"^3.0.0","@commitlint/cli":"^17.8.0","semantic-release":"^22.0.5","@semantic-release/git":"^10.0.1","eslint-config-prettier":"^8.8.0","@semantic-release/github":"^9.2.1","@semantic-release/changelog":"^6.0.3","@commitlint/config-conventional":"^17.8.0"},"_npmOperationalInternal":{"tmp":"tmp/inject-file-fragments_1.4.1_1698244200152_0.054803601188943674","host":"s3://npm-registry-packages"}},"1.5.0":{"name":"@drtrt/inject-file-fragments","version":"1.5.0","author":{"name":"drtrt-org"},"license":"MIT","_id":"@drtrt/inject-file-fragments@1.5.0","maintainers":[{"name":"drtrt-admin","email":"npm@drtrt.com"}],"homepage":"https://github.com/drtrt-org/inject-file-fragments#readme","bugs":{"url":"https://github.com/drtrt-org/inject-file-fragments/issues"},"bin":{"inject-file-fragments":"cli.js"},"dist":{"shasum":"0773d6f54e6f89be7a7e97525b3fe4d0212bc9e1","tarball":"https://registry.npmjs.org/@drtrt/inject-file-fragments/-/inject-file-fragments-1.5.0.tgz","fileCount":8,"integrity":"sha512-WSdIKD9nWymqkxDrnGAddO07d5jEtgejjjBzkHIMsnah+XSsTe/D5H1Q0KkT34XZ79BLnq3O28nQeJBuCYPFSA==","signatures":[{"sig":"MEQCIAF6u/HfiR8DDqLnuPPRGYAOKkWmRBMQDcV9yguYDGSVAiBUk9sZqAXU2OMHyr7guuiLtod/i4lJsxVRapE4Ek3mlA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@drtrt%2finject-file-fragments@1.5.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":8760},"main":"./src/index.js","types":".src/index.d.ts","module":"./src/index.mjs","engines":{"node":">=16.0.0 <20"},"exports":{".":{"import":"./src/index.mjs","require":"./src/index.js"}},"gitHead":"28bb151b33b4e69beecf80ad58a52f62dcec021b","scripts":{"test":"node --experimental-vm-modules node_modules/jest/bin/jest.js","format":"prettier --write .","pretest":"rimraf testAssets/generated && mkdirp testAssets/generated","commitlint":"commitlint --edit","test:watch":"npm test -- --watch","semantic-release":"semantic-release --dry-run"},"_npmUser":{"name":"drtrt-admin","email":"npm@drtrt.com"},"repository":{"url":"git+https://github.com/drtrt-org/inject-file-fragments.git","type":"git"},"_npmVersion":"10.2.1","description":"A simple NPM package that injects the contents of one or more files into another.","directories":{},"_nodeVersion":"18.18.2","publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.6.1","husky":"^8.0.3","mkdirp":"^3.0.1","rimraf":"^5.0.5","prettier":"^3.0.0","@commitlint/cli":"^17.8.0","semantic-release":"^22.0.5","@semantic-release/git":"^10.0.1","eslint-config-prettier":"^8.8.0","@semantic-release/github":"^9.2.1","@semantic-release/changelog":"^6.0.3","@commitlint/config-conventional":"^17.8.0"},"_npmOperationalInternal":{"tmp":"tmp/inject-file-fragments_1.5.0_1698266298090_0.59988087981628","host":"s3://npm-registry-packages"}},"1.6.0":{"name":"@drtrt/inject-file-fragments","version":"1.6.0","keywords":["inject","include","insert","file","fragments","build","CI","automation","script","command-line","cli","template"],"author":{"name":"drtrt-org"},"license":"MIT","_id":"@drtrt/inject-file-fragments@1.6.0","maintainers":[{"name":"drtrt-admin","email":"npm@drtrt.com"}],"homepage":"https://github.com/drtrt-org/inject-file-fragments#readme","bugs":{"url":"https://github.com/drtrt-org/inject-file-fragments/issues"},"bin":{"inject-file-fragments":"cli.js"},"dist":{"shasum":"1058809bdb7f4c862d51dbbfba22a43bb5ac2ba8","tarball":"https://registry.npmjs.org/@drtrt/inject-file-fragments/-/inject-file-fragments-1.6.0.tgz","fileCount":8,"integrity":"sha512-Zu1B0Zg9fDLtpOzyztMIczRbwPCSNCbvmdo6z7GfeF/6OE+NIaTf2tNnmdtQWi9VVo9UcaBJoJ8fa4PhyY5c8w==","signatures":[{"sig":"MEUCICh4N+pBQCtwWTYg0Xzzj2uKKCdY/kcEEXMaPy1woz29AiEA183uOp4O8gFqfSl/LeWtaqAa+psz/sLX7zpzkIcRxH4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@drtrt%2finject-file-fragments@1.6.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":9006},"main":"./src/index.js","types":".src/index.d.ts","module":"./src/index.mjs","engines":{"node":">=16.0.0 <20"},"exports":{".":{"import":"./src/index.mjs","require":"./src/index.js"}},"gitHead":"0e02836d710d5f98b2ec1ad15f81d144b19e6023","scripts":{"test":"node --experimental-vm-modules node_modules/jest/bin/jest.js","format":"prettier --write .","pretest":"rimraf testAssets/generated && mkdirp testAssets/generated","commitlint":"commitlint --edit","test:watch":"npm test -- --watch","semantic-release":"semantic-release --dry-run"},"_npmUser":{"name":"drtrt-admin","email":"npm@drtrt.com"},"repository":{"url":"git+https://github.com/drtrt-org/inject-file-fragments.git","type":"git"},"_npmVersion":"10.2.1","description":"A simple NPM package that injects the contents of one or more files into another.","directories":{},"_nodeVersion":"18.18.2","publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.6.1","husky":"^8.0.3","mkdirp":"^3.0.1","rimraf":"^5.0.5","prettier":"^3.0.0","@commitlint/cli":"^17.8.0","semantic-release":"^22.0.5","@semantic-release/git":"^10.0.1","eslint-config-prettier":"^8.8.0","@semantic-release/github":"^9.2.1","@semantic-release/changelog":"^6.0.3","@commitlint/config-conventional":"^17.8.0"},"_npmOperationalInternal":{"tmp":"tmp/inject-file-fragments_1.6.0_1698313739536_0.4847877835499861","host":"s3://npm-registry-packages"}},"1.6.1":{"name":"@drtrt/inject-file-fragments","version":"1.6.1","keywords":["inject","include","insert","file","fragments","build","CI","automation","script","command-line","cli","template"],"author":{"name":"drtrt-org"},"license":"MIT","_id":"@drtrt/inject-file-fragments@1.6.1","maintainers":[{"name":"drtrt-admin","email":"npm@drtrt.com"}],"homepage":"https://github.com/drtrt-org/inject-file-fragments#readme","bugs":{"url":"https://github.com/drtrt-org/inject-file-fragments/issues"},"bin":{"inject-file-fragments":"cli.js"},"dist":{"shasum":"6d7fb0d0e83db865b91ca582ecefceb7fef7bcf5","tarball":"https://registry.npmjs.org/@drtrt/inject-file-fragments/-/inject-file-fragments-1.6.1.tgz","fileCount":8,"integrity":"sha512-Lt375LvgWMS7y08ltI+QXVSpvX0rMQUNA+KZCFW4ABJ+jdOdEq9x6C7t/VBPi4R6AowfJvzut2oYNT/Sq+/3qQ==","signatures":[{"sig":"MEYCIQCPq5glZ7lSjgsrKNsXtrL9t4MoEhaxh+I6RslQqjHUcwIhANHkhtqnlynRoSngMiCu5GzTfoHqQ5aGx1fNg0wqgWFc","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@drtrt%2finject-file-fragments@1.6.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":11991},"main":"./src/index.js","types":".src/index.d.ts","module":"./src/index.mjs","engines":{"node":">=16.0.0 <20"},"exports":{".":{"import":"./src/index.mjs","require":"./src/index.js"}},"gitHead":"d51927f7a264c077bcb89f5431d1cee212b21f63","scripts":{"test":"node --experimental-vm-modules node_modules/jest/bin/jest.js","format":"prettier --write .","pretest":"rimraf testAssets/generated && mkdirp testAssets/generated","commitlint":"commitlint --edit","test:watch":"npm test -- --watch","semantic-release":"semantic-release --dry-run"},"_npmUser":{"name":"drtrt-admin","email":"npm@drtrt.com"},"repository":{"url":"git+https://github.com/drtrt-org/inject-file-fragments.git","type":"git"},"_npmVersion":"10.2.1","description":"A simple NPM package that injects the contents of one or more files into another.","directories":{},"_nodeVersion":"18.18.2","publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.6.1","husky":"^8.0.3","mkdirp":"^3.0.1","rimraf":"^5.0.5","prettier":"^3.0.0","@commitlint/cli":"^17.8.0","semantic-release":"^22.0.5","@semantic-release/git":"^10.0.1","eslint-config-prettier":"^8.8.0","@semantic-release/github":"^9.2.1","@semantic-release/changelog":"^6.0.3","@commitlint/config-conventional":"^17.8.0"},"_npmOperationalInternal":{"tmp":"tmp/inject-file-fragments_1.6.1_1698325556896_0.87686057547959","host":"s3://npm-registry-packages"}},"2.0.0":{"name":"@drtrt/inject-file-fragments","version":"2.0.0","keywords":["inject","include","insert","file","fragments","build","CI","automation","script","command-line","cli","template"],"author":{"name":"drtrt-org"},"license":"MIT","_id":"@drtrt/inject-file-fragments@2.0.0","maintainers":[{"name":"drtrt-admin","email":"npm@drtrt.com"}],"homepage":"https://github.com/drtrt-org/inject-file-fragments#readme","bugs":{"url":"https://github.com/drtrt-org/inject-file-fragments/issues"},"bin":{"inject-file-fragments":"cli.js"},"dist":{"shasum":"17bafc304609eca3dbd3ec5c1a91dcb53c17459d","tarball":"https://registry.npmjs.org/@drtrt/inject-file-fragments/-/inject-file-fragments-2.0.0.tgz","fileCount":9,"integrity":"sha512-tt0pWTBl3lRInB+rQAEkhF1zPcjVlBfOPNOcS8xjhSQLRB0Qg5mMenGCTvYgUEj6+uutSH9qsRZmppJ8IRhoQw==","signatures":[{"sig":"MEUCIQCauwLVGURqxcIXgP2gyfxfjSUCRSfVTK5Grohu2Fp1DwIgPCpLJRSnCQ1/wnBAYdT+XtHo/L+W9Ebsr8tBFm1SmfQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@drtrt%2finject-file-fragments@2.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":13561},"main":"./src/index.js","types":".src/index.d.ts","module":"./src/index.mjs","engines":{"node":">=16.0.0 <20"},"exports":{".":{"import":"./src/index.mjs","require":"./src/index.js"}},"gitHead":"c4ea860cad265ead94c07453703edd2e7a177bbd","scripts":{"test":"node --experimental-vm-modules node_modules/jest/bin/jest.js","format":"prettier --write .","pretest":"rimraf testAssets/generated && mkdirp testAssets/generated","commitlint":"commitlint --edit","test:watch":"npm test -- --watch","semantic-release":"semantic-release --dry-run"},"_npmUser":{"name":"drtrt-admin","email":"npm@drtrt.com"},"repository":{"url":"git+https://github.com/drtrt-org/inject-file-fragments.git","type":"git"},"_npmVersion":"10.2.1","description":"A simple NPM package that injects the contents of one or more files into another.","directories":{},"_nodeVersion":"18.18.2","publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.6.1","husky":"^8.0.3","eslint":"^8.52.0","mkdirp":"^3.0.1","rimraf":"^5.0.5","prettier":"^3.0.3","@commitlint/cli":"^17.8.0","semantic-release":"^22.0.5","eslint-plugin-jest":"^27.4.3","eslint-plugin-node":"^11.1.0","@semantic-release/git":"^10.0.1","eslint-config-prettier":"^8.10.0","eslint-plugin-prettier":"^5.0.1","@semantic-release/github":"^9.2.1","@semantic-release/changelog":"^6.0.3","@commitlint/config-conventional":"^17.8.0"},"_npmOperationalInternal":{"tmp":"tmp/inject-file-fragments_2.0.0_1698350064909_0.5962326297983096","host":"s3://npm-registry-packages"}},"2.0.1":{"name":"@drtrt/inject-file-fragments","version":"2.0.1","keywords":["inject","include","insert","file","fragments","build","CI","automation","script","command-line","cli","template"],"author":{"name":"drtrt-org"},"license":"MIT","_id":"@drtrt/inject-file-fragments@2.0.1","maintainers":[{"name":"drtrt-admin","email":"npm@drtrt.com"}],"homepage":"https://github.com/drtrt-org/inject-file-fragments#readme","bugs":{"url":"https://github.com/drtrt-org/inject-file-fragments/issues"},"bin":{"inject-file-fragments":"cli.js"},"dist":{"shasum":"e45225de78d610cf44af6b43cd24fa4939217b09","tarball":"https://registry.npmjs.org/@drtrt/inject-file-fragments/-/inject-file-fragments-2.0.1.tgz","fileCount":10,"integrity":"sha512-stp18rAwAZFF6LS3eKe6icoad8wJqlfdoP6J8Cuaxp70FtOWgQTsUZYdDbpiFhhLJcpBl1N3pQptUtqPhan0+Q==","signatures":[{"sig":"MEQCIHNfuUHzLflYr+oK8gBv82FrWdZSO30t/iRNpnHOnSnzAiA7ygQohzEkzsh0E/r0dsVijwZwa4uBiATEkw5xFzRqdw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@drtrt%2finject-file-fragments@2.0.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":28985},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=16.0.0 <20"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"fd1b7f16b817f21350e55c5a1dbb810113195f55","scripts":{"lint":"prettier --check . && eslint .","test":"jest","build":"tsup src/index.ts --format cjs,esm --dts --clean --sourcemap","watch":"npm run build -- --watch src","format":"prettier --write . && eslint --fix .","prepack":"npm run build","pretest":"rimraf testAssets/generated && mkdirp testAssets/generated","commitlint":"commitlint --edit","test:watch":"npm test -- --watch","semantic-release":"semantic-release --dry-run"},"_npmUser":{"name":"drtrt-admin","email":"npm@drtrt.com"},"repository":{"url":"git+https://github.com/drtrt-org/inject-file-fragments.git","type":"git"},"_npmVersion":"10.2.1","description":"A simple NPM package that injects the contents of one or more files into another.","directories":{},"_nodeVersion":"18.18.2","publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.6.1","tsup":"^7.2.0","husky":"^8.0.3","eslint":"^8.52.0","mkdirp":"^3.0.1","rimraf":"^5.0.5","ts-jest":"^29.1.1","prettier":"^3.0.3","@types/jest":"^29.5.6","@commitlint/cli":"^17.8.0","semantic-release":"^22.0.5","eslint-plugin-jest":"^27.4.3","eslint-plugin-node":"^11.1.0","@semantic-release/git":"^10.0.1","eslint-config-prettier":"^8.10.0","eslint-plugin-prettier":"^5.0.1","@semantic-release/github":"^9.2.1","@typescript-eslint/parser":"^6.9.0","@semantic-release/changelog":"^6.0.3","@commitlint/config-conventional":"^17.8.0","@typescript-eslint/eslint-plugin":"^6.9.0"},"_npmOperationalInternal":{"tmp":"tmp/inject-file-fragments_2.0.1_1698433169929_0.9605478175425219","host":"s3://npm-registry-packages"}},"3.0.0":{"name":"@drtrt/inject-file-fragments","version":"3.0.0","keywords":["inject","include","insert","file","fragments","build","CI","automation","script","command-line","cli","template"],"author":{"name":"drtrt-org"},"license":"MIT","_id":"@drtrt/inject-file-fragments@3.0.0","maintainers":[{"name":"drtrt-admin","email":"npm@drtrt.com"}],"homepage":"https://github.com/drtrt-org/inject-file-fragments#readme","bugs":{"url":"https://github.com/drtrt-org/inject-file-fragments/issues"},"bin":{"inject-file-fragments":"cli.js"},"dist":{"shasum":"b9685b6b68607be37b58d66fda6e1e016f69259e","tarball":"https://registry.npmjs.org/@drtrt/inject-file-fragments/-/inject-file-fragments-3.0.0.tgz","fileCount":10,"integrity":"sha512-xSvUbzuezTBXlN74qoj9lXvyZ8u9ReV271k1DZAiViVsvZRRKt7koX33T1gkDNU0E/gCDWMjSKEoZelLeIxpXQ==","signatures":[{"sig":"MEUCIEcnBRDLXOkgKHDwbVCtwKh3wZ5mSMD2/wqq2W27dt3HAiEA9Ljhv9rclopWYdVKCZCoUWAa1AVXIs7Sp1Qz0OIP/Us=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@drtrt%2finject-file-fragments@3.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":28985},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=18.0.0 <20"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"97221d326a90f6cd020ed92670ed3941a1589825","scripts":{"lint":"prettier --check . && eslint .","test":"jest","build":"tsup src/index.ts --format cjs,esm --dts --clean --sourcemap","watch":"npm run build -- --watch src","format":"prettier --write . && eslint --fix .","prepack":"npm run build","pretest":"rimraf testAssets/generated && mkdirp testAssets/generated","commitlint":"commitlint --edit","test:watch":"npm test -- --watch","semantic-release":"semantic-release --dry-run"},"_npmUser":{"name":"drtrt-admin","email":"npm@drtrt.com"},"repository":{"url":"git+https://github.com/drtrt-org/inject-file-fragments.git","type":"git"},"_npmVersion":"10.2.2","description":"A simple NPM package that injects the contents of one or more files into another.","directories":{},"_nodeVersion":"18.18.2","publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.6.1","tsup":"^7.2.0","husky":"^8.0.3","eslint":"^8.52.0","mkdirp":"^3.0.1","rimraf":"^5.0.5","ts-jest":"^29.1.1","prettier":"^3.0.3","@types/jest":"^29.5.6","@commitlint/cli":"^17.8.0","semantic-release":"^22.0.5","eslint-plugin-jest":"^27.4.3","eslint-plugin-node":"^11.1.0","@semantic-release/git":"^10.0.1","eslint-config-prettier":"^8.10.0","eslint-plugin-prettier":"^5.0.1","@semantic-release/github":"^9.2.1","@typescript-eslint/parser":"^6.9.0","@semantic-release/changelog":"^6.0.3","@commitlint/config-conventional":"^17.8.0","@typescript-eslint/eslint-plugin":"^6.9.0"},"_npmOperationalInternal":{"tmp":"tmp/inject-file-fragments_3.0.0_1698843542108_0.693095004178335","host":"s3://npm-registry-packages"}},"3.0.1":{"name":"@drtrt/inject-file-fragments","version":"3.0.1","keywords":["inject","include","insert","file","fragments","build","CI","automation","script","command-line","cli","template"],"author":{"name":"drtrt-org"},"license":"MIT","_id":"@drtrt/inject-file-fragments@3.0.1","maintainers":[{"name":"drtrt-admin","email":"npm@drtrt.com"}],"homepage":"https://github.com/drtrt-org/inject-file-fragments#readme","bugs":{"url":"https://github.com/drtrt-org/inject-file-fragments/issues"},"bin":{"inject-file-fragments":"cli.js"},"dist":{"shasum":"985c602b5aeee22a9de0b45a24050929f747db67","tarball":"https://registry.npmjs.org/@drtrt/inject-file-fragments/-/inject-file-fragments-3.0.1.tgz","fileCount":10,"integrity":"sha512-iy3011qWFSIpWiws8/aaEBXq3+ydQUWXTQMUZ/2jWtap6ZXIMUB546WUjYTjJOEZBhy2BZ8k0kPHLP7LnGV2jg==","signatures":[{"sig":"MEQCIC5y3Zr7sPI1Az9xw2Ykj03K2/f3crS7ZSGOdR8FqPzKAiB0iRNa14K9Yloio6aUTxTz1r54Q2k4sGietcpfAE0p3w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@drtrt%2finject-file-fragments@3.0.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":29510},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=18.0.0 <20"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"41b1f010ea00cb660bd26e90c53f74887abdddb8","scripts":{"lint":"prettier --check . && eslint .","test":"jest","build":"tsup src/index.ts --format cjs,esm --dts --clean --sourcemap","watch":"npm run build -- --watch src","format":"prettier --write . && eslint --fix .","prepack":"npm run build","pretest":"rimraf testAssets/generated && mkdirp testAssets/generated","commitlint":"commitlint --edit","test:watch":"npm test -- --watch","semantic-release":"semantic-release --dry-run"},"_npmUser":{"name":"drtrt-admin","email":"npm@drtrt.com"},"repository":{"url":"git+https://github.com/drtrt-org/inject-file-fragments.git","type":"git"},"_npmVersion":"10.2.2","description":"A simple NPM package that injects the contents of one or more files into another.","directories":{},"_nodeVersion":"18.18.2","publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.6.1","tsup":"^7.2.0","husky":"^8.0.3","eslint":"^8.52.0","mkdirp":"^3.0.1","rimraf":"^5.0.5","ts-jest":"^29.1.1","prettier":"^3.0.3","@types/jest":"^29.5.6","@commitlint/cli":"^17.8.0","semantic-release":"^22.0.5","eslint-plugin-jest":"^27.4.3","eslint-plugin-node":"^11.1.0","@semantic-release/git":"^10.0.1","eslint-config-prettier":"^8.10.0","eslint-plugin-prettier":"^5.0.1","@semantic-release/github":"^9.2.1","@typescript-eslint/parser":"^6.9.0","@semantic-release/changelog":"^6.0.3","@commitlint/config-conventional":"^17.8.0","@typescript-eslint/eslint-plugin":"^6.9.0"},"_npmOperationalInternal":{"tmp":"tmp/inject-file-fragments_3.0.1_1699559066068_0.020293824135548144","host":"s3://npm-registry-packages"}},"3.0.2":{"name":"@drtrt/inject-file-fragments","version":"3.0.2","keywords":["inject","include","insert","file","fragments","build","CI","automation","script","command-line","cli","template"],"author":{"name":"drtrt-org"},"license":"MIT","_id":"@drtrt/inject-file-fragments@3.0.2","maintainers":[{"name":"drtrt-admin","email":"npm@drtrt.com"}],"homepage":"https://github.com/drtrt-org/inject-file-fragments#readme","bugs":{"url":"https://github.com/drtrt-org/inject-file-fragments/issues"},"bin":{"inject-file-fragments":"cli.js"},"dist":{"shasum":"477f2bcd46e42be5512082d1e21f806edead205c","tarball":"https://registry.npmjs.org/@drtrt/inject-file-fragments/-/inject-file-fragments-3.0.2.tgz","fileCount":10,"integrity":"sha512-elTNM+Pa/A6fXEzY3MDS9ukj8+U+C/XpMpU+ADb8ZE8QklAVBGDMlL4JUkfc7u8DQOyTPwoAoXJQyriyFtawPA==","signatures":[{"sig":"MEUCIQCMLtAaZNBlAVL5rfFPdIa7dEsQy1mnbPqP5pdrbulyfQIgEqx1QRFyRjLHsq5gv3PYekV+CmaPqMvQOO0q7+czGxY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@drtrt%2finject-file-fragments@3.0.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":29526},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=18.0.0 <20"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"4e4e12406179ac8c3afea2c89c3279d845e5c11c","scripts":{"lint":"prettier --check . && eslint .","test":"jest","build":"tsup src/index.ts --format cjs,esm --dts --clean --sourcemap","watch":"npm run build -- --watch src","format":"prettier --write . && eslint --fix .","prepack":"npm run build","pretest":"rimraf testAssets/generated && mkdirp testAssets/generated","commitlint":"commitlint --edit","test:watch":"npm test -- --watch","semantic-release":"semantic-release --dry-run"},"_npmUser":{"name":"drtrt-admin","email":"npm@drtrt.com"},"repository":{"url":"git+https://github.com/drtrt-org/inject-file-fragments.git","type":"git"},"_npmVersion":"10.2.2","description":"A simple NPM package that injects the contents of one or more files into another.","directories":{},"_nodeVersion":"18.19.0","publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.6.1","tsup":"^7.2.0","husky":"^8.0.3","eslint":"^8.52.0","mkdirp":"^3.0.1","rimraf":"^5.0.5","ts-jest":"^29.1.1","prettier":"^3.0.3","@types/jest":"^29.5.6","@commitlint/cli":"^17.8.0","semantic-release":"^22.0.5","eslint-plugin-jest":"^27.4.3","eslint-plugin-node":"^11.1.0","@semantic-release/git":"^10.0.1","eslint-config-prettier":"^8.10.0","eslint-plugin-prettier":"^5.0.1","@semantic-release/github":"^9.2.1","@typescript-eslint/parser":"^6.9.0","@semantic-release/changelog":"^6.0.3","@commitlint/config-conventional":"^17.8.0","@typescript-eslint/eslint-plugin":"^6.9.0"},"_npmOperationalInternal":{"tmp":"tmp/inject-file-fragments_3.0.2_1703707665343_0.8272065267137154","host":"s3://npm-registry-packages"}},"3.0.3":{"name":"@drtrt/inject-file-fragments","version":"3.0.3","keywords":["inject","include","insert","file","fragments","build","CI","automation","script","command-line","cli","template"],"author":{"name":"drtrt-org"},"license":"MIT","_id":"@drtrt/inject-file-fragments@3.0.3","maintainers":[{"name":"drtrt-admin","email":"npm@drtrt.com"}],"homepage":"https://github.com/drtrt-org/inject-file-fragments#readme","bugs":{"url":"https://github.com/drtrt-org/inject-file-fragments/issues"},"bin":{"inject-file-fragments":"cli.js"},"dist":{"shasum":"95bf754f14c38f2aa72afd227444b2e17b77a517","tarball":"https://registry.npmjs.org/@drtrt/inject-file-fragments/-/inject-file-fragments-3.0.3.tgz","fileCount":10,"integrity":"sha512-K+GQuLbI1vCKbDmhTJbbcfAVj1INx7JOoeS99UtggGo/s5a/Xb8ogfJU7EvxFQSEl8wPIK2NeRbID2hX6GqTTA==","signatures":[{"sig":"MEUCIG4fYzDSybIcez7rz2birpJvDzquvXzjFgwA831/Ja7VAiEAy1HYGNZPk9fhMiMli0jx4J26WTRRuMfzsgT8B5dxmaI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@drtrt%2finject-file-fragments@3.0.3","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":29357},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=18.0.0 <=20"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"a5426fa5a47977d92fb71bae3d5a75586505b28d","scripts":{"lint":"prettier --check . && eslint .","test":"jest","build":"tsup src/index.ts --format cjs,esm --dts --clean --sourcemap","watch":"npm run build -- --watch src","format":"prettier --write . && eslint --fix .","prepack":"npm run build","pretest":"rimraf testAssets/generated && mkdirp testAssets/generated","commitlint":"commitlint --edit","test:watch":"npm test -- --watch","semantic-release":"semantic-release --dry-run"},"_npmUser":{"name":"drtrt-admin","email":"npm@drtrt.com"},"overrides":{"conventional-changelog-conventionalcommits":">= 8.0.0"},"repository":{"url":"git+https://github.com/drtrt-org/inject-file-fragments.git","type":"git"},"_npmVersion":"10.8.2","description":"A simple NPM package that injects the contents of one or more files into another.","directories":{},"_nodeVersion":"20.16.0","publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"devDependencies":{"jest":"29","tsup":"8","husky":"9","eslint":"^9.9.0","mkdirp":"3","rimraf":"6","globals":"^15.9.0","ts-jest":"29","prettier":"3","@eslint/js":"^9.9.0","@types/jest":"29","@commitlint/cli":"19","semantic-release":"24","typescript-eslint":"^8.2.0","@semantic-release/git":"10","eslint-config-prettier":"9","@semantic-release/github":"10","@semantic-release/changelog":"6","@commitlint/config-conventional":"19"},"_npmOperationalInternal":{"tmp":"tmp/inject-file-fragments_3.0.3_1724499045722_0.5927801782252966","host":"s3://npm-registry-packages"}},"3.0.4":{"name":"@drtrt/inject-file-fragments","version":"3.0.4","keywords":["inject","include","insert","file","fragments","build","CI","automation","script","command-line","cli","template"],"author":{"name":"drtrt-org"},"license":"MIT","_id":"@drtrt/inject-file-fragments@3.0.4","maintainers":[{"name":"drtrt-admin","email":"npm@drtrt.com"}],"homepage":"https://github.com/drtrt-org/inject-file-fragments#readme","bugs":{"url":"https://github.com/drtrt-org/inject-file-fragments/issues"},"bin":{"inject-file-fragments":"cli.js"},"dist":{"shasum":"f2651d179115d307f613cb1eb9af8727b5477a9d","tarball":"https://registry.npmjs.org/@drtrt/inject-file-fragments/-/inject-file-fragments-3.0.4.tgz","fileCount":10,"integrity":"sha512-OnZvH09JbxCr7JiQYQFDW2mparlB3SaOVYLVW3dRCr9Qp25mx3Wi6lFtkVgIuaZrekYBUCqKl/1AaTpQYHYtAg==","signatures":[{"sig":"MEUCIQDdgFJvrg4FbBToYhIIscs9JLjflOHYpUTWbZuYjk/zVgIgGkABiCUQJ4SJOCSh02B5zSS+20NBbchdrPbZQxcFmjk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@drtrt%2finject-file-fragments@3.0.4","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":29358},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=18.0.0 <=20"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"c3de9ddf6c9f78913f9ca7ae3ef484cc726a5e13","scripts":{"lint":"prettier --check . && eslint .","test":"jest","build":"tsup src/index.ts --format cjs,esm --dts --clean --sourcemap","watch":"npm run build -- --watch src","format":"prettier --write . && eslint --fix .","prepack":"npm run build","pretest":"rimraf testAssets/generated && mkdirp testAssets/generated","commitlint":"commitlint --edit","test:watch":"npm test -- --watch","semantic-release":"semantic-release --dry-run"},"_npmUser":{"name":"drtrt-admin","email":"npm@drtrt.com"},"overrides":{"conventional-changelog-conventionalcommits":">= 8.0.0"},"repository":{"url":"git+https://github.com/drtrt-org/inject-file-fragments.git","type":"git"},"_npmVersion":"10.8.2","description":"A simple NPM package that injects the contents of one or more files into another.","directories":{},"_nodeVersion":"20.16.0","publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"devDependencies":{"jest":"29","tsup":"8","husky":"9","eslint":"^9.9.0","mkdirp":"3","rimraf":"6","globals":"^15.9.0","ts-jest":"29","prettier":"3","@eslint/js":"^9.9.0","@types/jest":"29","@commitlint/cli":"19","semantic-release":"24","typescript-eslint":"^8.2.0","@semantic-release/git":"10","eslint-config-prettier":"9","@semantic-release/github":"10","@semantic-release/changelog":"6","@commitlint/config-conventional":"19"},"_npmOperationalInternal":{"tmp":"tmp/inject-file-fragments_3.0.4_1724501963255_0.8940070612963269","host":"s3://npm-registry-packages"}},"3.1.0":{"name":"@drtrt/inject-file-fragments","version":"3.1.0","keywords":["inject","include","insert","file","fragments","build","CI","automation","script","command-line","cli","template"],"author":{"name":"drtrt-org"},"license":"MIT","_id":"@drtrt/inject-file-fragments@3.1.0","maintainers":[{"name":"drtrt-admin","email":"npm@drtrt.com"}],"homepage":"https://github.com/drtrt-org/inject-file-fragments#readme","bugs":{"url":"https://github.com/drtrt-org/inject-file-fragments/issues"},"bin":{"inject-file-fragments":"cli.js"},"dist":{"shasum":"3efc4c146a96ed1ab10adec81c0cb82353480974","tarball":"https://registry.npmjs.org/@drtrt/inject-file-fragments/-/inject-file-fragments-3.1.0.tgz","fileCount":10,"integrity":"sha512-DszukYZXi0neSTxx6P65YHo0H2tjxpq+jzRLQkEFlhjTUiDk5d/RnU5ACoWgo3gmOgnWD70o4qPo+sb774LXrQ==","signatures":[{"sig":"MEYCIQDPSYVb1H8nVyOViO9N2jToni+4yXUh43Co9jpvidWXpgIhAOlC2D/FKBxh4rX9Wg6v2s0TElZVpBEBv9NsInzl0Zab","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@drtrt%2finject-file-fragments@3.1.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":29349},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=18"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"1b24d21c87926375b837098114b84c362f530f09","scripts":{"lint":"prettier --check . && eslint .","test":"jest","build":"tsup src/index.ts --format cjs,esm --dts --clean --sourcemap","watch":"npm run build -- --watch src","format":"prettier --write . && eslint --fix .","prepack":"npm run build","pretest":"rimraf testAssets/generated && mkdirp testAssets/generated","commitlint":"commitlint --edit","test:watch":"npm test -- --watch","semantic-release":"semantic-release --dry-run"},"_npmUser":{"name":"drtrt-admin","email":"npm@drtrt.com"},"overrides":{"conventional-changelog-conventionalcommits":">= 8.0.0"},"repository":{"url":"git+https://github.com/drtrt-org/inject-file-fragments.git","type":"git"},"_npmVersion":"10.8.2","description":"A simple NPM package that injects the contents of one or more files into another.","directories":{},"_nodeVersion":"20.16.0","publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"devDependencies":{"jest":"29","tsup":"8","husky":"9","eslint":"^9.9.0","mkdirp":"3","rimraf":"6","globals":"^15.9.0","ts-jest":"29","prettier":"3","@eslint/js":"^9.9.0","@types/jest":"29","@commitlint/cli":"19","semantic-release":"24","typescript-eslint":"^8.2.0","@semantic-release/git":"10","eslint-config-prettier":"9","@semantic-release/github":"10","@semantic-release/changelog":"6","@commitlint/config-conventional":"19"},"_npmOperationalInternal":{"tmp":"tmp/inject-file-fragments_3.1.0_1724521872082_0.7800406574612213","host":"s3://npm-registry-packages"}},"3.1.1":{"name":"@drtrt/inject-file-fragments","version":"3.1.1","description":"A simple NPM package that injects the contents of one or more files into another.","keywords":["inject","include","insert","file","fragments","build","CI","automation","script","command-line","cli","template"],"publishConfig":{"access":"public","provenance":true},"engines":{"node":">=18"},"type":"module","main":"./dist/index.cjs","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","require":"./dist/index.cjs","import":"./dist/index.js"}},"bin":{"inject-file-fragments":"cli.js"},"scripts":{"prepack":"npm run build","pretest":"rimraf testAssets/generated && mkdirp testAssets/generated","test":"jest","test:watch":"npm test -- --watch","lint":"prettier --check . && eslint .","format":"prettier --write . && eslint --fix .","commitlint":"commitlint --edit","semantic-release":"semantic-release --dry-run","build":"tsup src/index.ts --format cjs,esm --dts --clean --sourcemap","watch":"npm run build -- --watch src"},"repository":{"type":"git","url":"git+https://github.com/drtrt-org/inject-file-fragments.git"},"author":{"name":"drtrt-org"},"license":"MIT","homepage":"https://github.com/drtrt-org/inject-file-fragments#readme","devDependencies":{"@commitlint/cli":"19","@commitlint/config-conventional":"19","@eslint/js":"^9.9.0","@semantic-release/changelog":"6","@semantic-release/git":"10","@semantic-release/github":"10","@types/jest":"29","eslint":"^9.9.0","eslint-config-prettier":"9","globals":"^15.9.0","husky":"9","jest":"29","mkdirp":"3","prettier":"3","rimraf":"6","semantic-release":"24","ts-jest":"29","tsup":"8","typescript-eslint":"^8.2.0"},"overrides":{"conventional-changelog-conventionalcommits":">= 8.0.0"},"_id":"@drtrt/inject-file-fragments@3.1.1","gitHead":"6b5888568f57949d3798fbaf424ad5d427f9c469","bugs":{"url":"https://github.com/drtrt-org/inject-file-fragments/issues"},"_nodeVersion":"20.17.0","_npmVersion":"10.8.2","dist":{"integrity":"sha512-h8SXxsZK1EzYwNOXexO2Osca708J8fO2H4AIVI0QUVfOMKYRULhIqkOvdQwHQy+sMSsmlMtH3NjfcFPITvqCKA==","shasum":"cbb4b3c6199e804d365450e7ec687d5cc1c1c43c","tarball":"https://registry.npmjs.org/@drtrt/inject-file-fragments/-/inject-file-fragments-3.1.1.tgz","fileCount":10,"unpackedSize":29313,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@drtrt%2finject-file-fragments@3.1.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDsBNpFFSRgQjGPawXGHJz+Eje1U0uHQrvcBQGn8ma7BAiAzAjzjhWOPMK/5uFkTbjLDKTiwdDhyoR8YPsbQrQnCuw=="}]},"_npmUser":{"name":"drtrt-admin","email":"npm@drtrt.com"},"directories":{},"maintainers":[{"name":"drtrt-admin","email":"npm@drtrt.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/inject-file-fragments_3.1.1_1726482210666_0.468112483645982"},"_hasShrinkwrap":false}},"time":{"created":"2023-10-21T21:40:59.245Z","modified":"2024-09-16T10:23:31.232Z","1.1.0":"2023-10-21T21:40:59.510Z","1.2.0":"2023-10-22T13:17:15.729Z","1.2.1":"2023-10-22T21:10:19.852Z","1.2.2":"2023-10-23T11:29:06.650Z","1.2.3":"2023-10-23T20:45:31.180Z","1.2.4":"2023-10-23T20:55:07.035Z","1.3.0":"2023-10-24T21:12:02.244Z","1.4.0":"2023-10-25T14:05:51.791Z","1.4.1":"2023-10-25T14:30:00.299Z","1.5.0":"2023-10-25T20:38:18.360Z","1.6.0":"2023-10-26T09:48:59.748Z","1.6.1":"2023-10-26T13:05:57.228Z","2.0.0":"2023-10-26T19:54:25.121Z","2.0.1":"2023-10-27T18:59:30.139Z","3.0.0":"2023-11-01T12:59:02.276Z","3.0.1":"2023-11-09T19:44:26.303Z","3.0.2":"2023-12-27T20:07:45.558Z","3.0.3":"2024-08-24T11:30:45.866Z","3.0.4":"2024-08-24T12:19:23.439Z","3.1.0":"2024-08-24T17:51:12.278Z","3.1.1":"2024-09-16T10:23:30.838Z"},"bugs":{"url":"https://github.com/drtrt-org/inject-file-fragments/issues"},"author":{"name":"drtrt-org"},"license":"MIT","homepage":"https://github.com/drtrt-org/inject-file-fragments#readme","keywords":["inject","include","insert","file","fragments","build","CI","automation","script","command-line","cli","template"],"repository":{"type":"git","url":"git+https://github.com/drtrt-org/inject-file-fragments.git"},"description":"A simple NPM package that injects the contents of one or more files into another.","maintainers":[{"name":"drtrt-admin","email":"npm@drtrt.com"}],"readme":"# Inject File Fragments\n\n[![CI status](https://img.shields.io/badge/ci-passing-green)](https://github.com/drtrt-org/inject-file-fragments/actions/workflows/CI.yml)\n[![NPM version](https://img.shields.io/npm/v/@drtrt/inject-file-fragments)](https://www.npmjs.com/package/@drtrt/inject-file-fragments)\n[![License](https://img.shields.io/npm/l/@drtrt/inject-file-fragments)](./LICENSE)\n[![NPM bundle size analysis](https://img.shields.io/bundlephobia/minzip/@drtrt/inject-file-fragments)](https://bundlephobia.com/package/@drtrt/inject-file-fragments)\n\n`@drtrt/inject-file-fragments` is for those moments when all you want to do is inject the contents of one file into another, in the simplest and most framework-free manner possible.\n\n| _`@drtrt/inject-file-fragments` is used to build [Fluent API Generator](https://www.fluentapigen.com)_ |\n| :----------------------------------------------------------------------------------------------------- |\n\n<br/>\n\n## Example\n\nThis example uses two fragment files, each of which will be injected into an HTML template.\n\n### Fragments\n\n`fragment_1.js`:\n\n```js\nconsole.log(\"Why, hello there.\");\n```\n\n`fragment_2.html`:\n\n```html\n<div>Hello, again.</div>\n```\n\n### Template\n\n`index.html.template`:\n\n```html\n<!doctype html>\n<html lang=\"en\">\n    <head>\n        <title>Greetings to all</title>\n\n        <script>\n            /*% FRAGMENT_PATH: ./fragment_1.js %*/\n        </script>\n    </head>\n\n    <body>\n        <!--% FRAGMENT_PATH: ./fragment_2.html %-->\n    </body>\n</html>\n```\n\n### Result\n\nExecuting the command:\n\n```sh\n$ inject-file-fragments index.html.template index.html\n```\n\n... gives us the result:\n\n`index.html`:\n\n```html\n<!doctype html>\n<html lang=\"en\">\n    <head>\n        <title>Greetings to all</title>\n\n        <script>\n            console.log(\"Why, hello there.\");\n        </script>\n    </head>\n\n    <body>\n        <div>Hello, again.</div>\n    </body>\n</html>\n```\n\n## Installation\n\n#### NPM\n\n```sh\nnpm install @drtrt/inject-file-fragments -D\n```\n\n#### Yarn\n\n```sh\nyarn add @drtrt/inject-file-fragments -D\n```\n\n## Usage\n\nThe example above is self-explanatory. However, there are some points to bear in mind:\n\n### The path to a Fragment File should be specified in the placeholder\n\nThis makes for a straightforward configuration, as it is very clear to see which fragment will end up in which placeholder.\n\nFor example:\n\n`index.html.template`:\n\n```html\n<!doctype html>\n<html lang=\"en\">\n    <head>\n        <script>\n            /*% FRAGMENT_PATH: ./fragment_1.js %*/\n        </script>\n    </head>\n</html>\n```\n\nHere, we can see that it is the contents of `fragment_1.js` that will be injected, and we can see exactly where this will happen.\n\n_**Note**: Fragment File paths are relative to the template file. In the example above, `fragment_1.js` is in the same folder as `index.html.template`_.\n\n### Any common comment type can be used\n\nThis allows placeholders to be used in many different template types, without causing linting complaints or formatting issues in Code Editors:\n\n| Comment Type                                  | Example                                     |\n| --------------------------------------------- | ------------------------------------------- |\n| `XML`, `HTML`, etc.                           | `<!--% FRAGMENT_PATH: ./fragment.html %-->` |\n| `C`, `C++`, `CSS`, `Java`, `JavaScript`, etc. | `/*% FRAGMENT_PATH: ./fragment.cs %*/`      |\n| `sh`, `bash`, `Python`, `Ruby`, etc.          | `#% FRAGMENT_PATH: ./fragment.sh %#`        |\n| `PowerShell`                                  | `<#% FRAGMENT_PATH: ./fragment.ps1 %#>`     |\n\n### The Placeholder comment format must be precise\n\nThe examples in the table above give the general idea:\n\n-   The comment opener & closer should each include a `%` symbol.\n-   The comment opener should be followed by `FRAGMENT_PATH:`\n-   This should then be followed by the path to the Fragment File.\n\nAside from this, the parser is quite permissive regarding use of whitespace.\n\n### Placeholder comments do not have to be on a separate line\n\nThis would work fine, for example:\n\n<!-- prettier-ignore-start -->\n```html\n<!doctype html>\n<html lang=\"en\">\n    <head>\n        <script>/*% FRAGMENT_PATH: ./fragment_1.js %*/</script>\n    </head>\n</html>\n```\n<!-- prettier-ignore-end -->\n\n_**Note**: The entire comment is removed as part of the injected content substitution_.\n\n## Consumption from Node.js\n\nThe main use case for `@drtrt/inject-file-fragments` is from the command line during build processes. But, it can also be used in Node.js projects:\n\n#### ECMAScript Modules (ESM)\n\n```javascript\nimport { injectFileFragments } from \"@drtrt/inject-file-fragments\";\n\ninjectFileFragments(templateFilePath, generatedFilePath);\n```\n\n#### CommonJS (CJS)\n\n```javascript\nconst { injectFileFragments } = require(\"@drtrt/inject-file-fragments\");\n\ninjectFileFragments(templateFilePath, generatedFilePath);\n```\n\n## Why?\n\nMany JavaScript bundlers have features or plugins that allow you to inject content from one file into another. `Parcel`, `Rollup`, `Vite` and `webpack`, for example, can all be persuaded to do this.\n\nHowever, this can mean finding the right plugin, of which there are sometimes many, and making sure it is suitable for the file type that you are working with; what works with an HTML file might not also work for CSS.\n\nAdditionally, for anything other than the most straightforward cases, the configuration for getting file injection to work can become involved. What is more, sometimes a development framework will include an injection-capable bundler, but the framework conventions prevent this functionality from being easily exposed.\n\nIn these situations, you want a tool which will do file injection, and only file injection, in as simple and straightforward a way possible.\n\n## Questions\n\n### What if I want to add content to a file directly from the command line?\n\n_For example, I'd like to write a Git Commit hash directly into a `data-ver` attribute on my index page's `html` element._\n\n#### **Answer:** _Write to an intermediary file fragment._\n\nIf you write the fragment to a file:\n\n```sh\nprintf $(git rev-parse --short HEAD) > ./gitCommitShortHash.txt\n```\n\n... then you can use `inject-file-fragments` as normal:\n\n`index.html.template`:\n\n```html\n<!doctype html>\n<html lang=\"en\" data-ver=\"/*% FRAGMENT_PATH: ./gitCommitShortHash.txt %*/\">\n    ...\n</html>\n```\n\n... and then:\n\n```sh\n$ inject-file-fragments index.html.template index.html\n```\n\n... gives the result:\n\n`index.html`:\n\n```html\n<!doctype html>\n<html lang=\"en\" data-ver=\"72fc5cb\">\n    ...\n</html>\n```\n\n## Release History\n\nThe Change Log for this package is available in the GitHub Repo, [here](https://github.com/drtrt-org/inject-file-fragments/blob/main/CHANGELOG.md).\n","readmeFilename":"README.md"}