{"_id":"stringtemplate4ts","_rev":"13-2b3070842f4abc5a4cb469d62f93a075","name":"stringtemplate4ts","dist-tags":{"latest":"2.0.1"},"versions":{"1.0.0":{"name":"stringtemplate4ts","version":"1.0.0","keywords":["string","template"],"author":{"name":"Mike Lischke"},"license":"MIT","_id":"stringtemplate4ts@1.0.0","maintainers":[{"name":"mike-lischke","email":"mike@lischke-online.de"}],"homepage":"https://github.com/mike-lischke/stringtemplate4-ts#readme","bugs":{"url":"https://github.com/mike-lischke/stringtemplate4-ts/issues"},"dist":{"shasum":"2e251e6cf1feda8fc9889cf038ae53e09c206ee8","tarball":"https://registry.npmjs.org/stringtemplate4ts/-/stringtemplate4ts-1.0.0.tgz","fileCount":70,"integrity":"sha512-4am9dfKKVSZ5f9KvTeLE61LRUIF24VcK2J3Rrm+CgZ+AKTjkXflecNONyBScOZ3KiX6RgNN/zWIWfkh0j6c5Zg==","signatures":[{"sig":"MEUCIFU1Mg8qJK8rqom0wycJWRfka09PDoFyOYDakccsjq7SAiEA7mYOhWAVpNvM5ZoeRJHjQYjqM+hT5L+TJ9liptVlEDw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1056414},"main":"index.mjs","type":"module","gitHead":"28a0b677588b823f8541ef981e8ab825bfcc1dd6","scripts":{"test":"node --experimental-vm-modules --no-warnings --loader ts-node/esm ./node_modules/jest/bin/jest.js --no-coverage --silent","build":"npm run generate-parsers && tsc && esbuild ./src/index.js --main-fields=module,main --bundle --outfile=dist/stringtemplate4ts.mjs --format=esm --platform=node","test-ci":"npm run test -- --no-coverage --watchAll=false --silent","test-coverage":"npm run test -- --coverage --silent","build-minified":"npm run build -- --minify","prepublishOnly":"npm run build && npm run test","generate-parsers":"antlr4ng -no-visitor -no-listener -Dlanguage=TypeScript -o src/compiler/generated -package parser -encoding utf8 -Xexact-output-dir src/compiler/*.g4"},"_npmUser":{"name":"mike-lischke","email":"mike@lischke-online.de"},"repository":{"url":"git+https://github.com/mike-lischke/stringtemplate4-ts.git","type":"git"},"_npmVersion":"9.8.0","description":"A TypeScript port of the Java StringTemplate 4 library","directories":{},"_nodeVersion":"20.5.1","dependencies":{"he":"1.2.0","luxon":"3.4.4","antlr4ng":"2.0.5","fast-printf":"1.6.9"},"_hasShrinkwrap":false,"devDependencies":{"jest":"29.7.0","eslint":"8.55.0","esbuild":"0.19.10","ts-jest":"29.1.1","ts-node":"10.9.2","@types/he":"1.2.3","typescript":"5.3.3","@types/jest":"29.5.11","@types/node":"20.10.4","@types/luxon":"^3.4.0","antlr4ng-cli":"^1.0.7","eslint-plugin-jsdoc":"46.9.0","eslint-plugin-import":"2.29.0","@typescript-eslint/parser":"6.13.2","eslint-plugin-prefer-arrow":"1.2.3","@typescript-eslint/eslint-plugin":"6.14.0"},"_npmOperationalInternal":{"tmp":"tmp/stringtemplate4ts_1.0.0_1705406403976_0.19063730311509497","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"stringtemplate4ts","version":"1.0.1","keywords":["string","template"],"author":{"name":"Mike Lischke"},"license":"MIT","_id":"stringtemplate4ts@1.0.1","maintainers":[{"name":"mike-lischke","email":"mike@lischke-online.de"}],"homepage":"https://github.com/mike-lischke/stringtemplate4-ts#readme","bugs":{"url":"https://github.com/mike-lischke/stringtemplate4-ts/issues"},"dist":{"shasum":"5cd36bf6d3dd70afb21b53c532069f0f430ebdfe","tarball":"https://registry.npmjs.org/stringtemplate4ts/-/stringtemplate4ts-1.0.1.tgz","fileCount":72,"integrity":"sha512-dDjT5di6LHPoDzXASXAwNfsZCS8239FhBKVqRYL7xQ5qtW5ZjhUkutTbcUBQwqdjIC7i8JcEjctnoXzR8DYgBw==","signatures":[{"sig":"MEUCIB6xzqOUnhu+spdAjTX57oZmjfFt3/coekKnOR0xF3uzAiEAlNLRRFLADSqPnCBIDodFiP6vjOUKy8NbQ4pOzWExnwY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1994340},"main":"dist/index.cjs","type":"module","types":"dist/index.d.ts","module":"dist/index.mjs","gitHead":"5d3a88eb83fdd07bfdcc9cfddb32d15404dfbe2e","scripts":{"test":"node --experimental-vm-modules --no-warnings --loader ts-node/esm ./node_modules/jest/bin/jest.js --no-coverage --silent","test-ci":"npm run test -- --no-coverage --watchAll=false --silent","build-cjs":"npm run build-bundle -- --outfile=dist/index.cjs --format=cjs --platform=node","build-mjs":"npm run build-bundle -- --outfile=dist/index.mjs --format=esm --platform=node","build-bundle":"esbuild ./src/index.js --main-fields=module,main --bundle --sourcemap","test-coverage":"npm run test -- --coverage --silent","build-minified":"npm run generate-parsers && tsc && npm run build-mjs-minified && npm run build-cjs-minified","prepublishOnly":"npm run build-minified && npm run test","generate-parsers":"antlr4ng -no-visitor -no-listener -Dlanguage=TypeScript -o src/compiler/generated -package parser -encoding utf8 -Xexact-output-dir src/compiler/*.g4","build-cjs-minified":"npm run build-cjs -- --minify","build-mjs-minified":"npm run build-mjs -- --minify"},"_npmUser":{"name":"mike-lischke","email":"mike@lischke-online.de"},"repository":{"url":"git+https://github.com/mike-lischke/stringtemplate4-ts.git","type":"git"},"_npmVersion":"9.8.0","description":"A TypeScript port of the Java StringTemplate 4 library","directories":{},"_nodeVersion":"20.5.1","dependencies":{"he":"1.2.0","luxon":"3.4.4","antlr4ng":"2.0.5","fast-printf":"1.6.9"},"_hasShrinkwrap":false,"devDependencies":{"jest":"29.7.0","eslint":"8.55.0","esbuild":"0.19.10","ts-jest":"29.1.1","ts-node":"10.9.2","@types/he":"1.2.3","typescript":"5.3.3","@types/jest":"29.5.11","@types/node":"20.10.4","@types/luxon":"3.4.0","antlr4ng-cli":"^1.0.7","eslint-plugin-jsdoc":"46.9.0","eslint-plugin-import":"2.29.0","@typescript-eslint/parser":"6.13.2","eslint-plugin-prefer-arrow":"1.2.3","@typescript-eslint/eslint-plugin":"6.14.0"},"_npmOperationalInternal":{"tmp":"tmp/stringtemplate4ts_1.0.1_1705424181031_0.475087778902163","host":"s3://npm-registry-packages"}},"1.0.2":{"name":"stringtemplate4ts","version":"1.0.2","keywords":["string","template"],"author":{"name":"Mike Lischke"},"license":"MIT","_id":"stringtemplate4ts@1.0.2","maintainers":[{"name":"mike.lischke","email":"mike@lischke-online.de"}],"homepage":"https://github.com/mike-lischke/stringtemplate4-ts#readme","bugs":{"url":"https://github.com/mike-lischke/stringtemplate4-ts/issues"},"dist":{"shasum":"e1ad9fc036976242fb0777d6e1fa43a5468ea608","tarball":"https://registry.npmjs.org/stringtemplate4ts/-/stringtemplate4ts-1.0.2.tgz","fileCount":72,"integrity":"sha512-MtIpPDALfZBa0MjvukPoDMHd0UoH/HCOhWQNlQHvcX12UNqTQsEjHkU9kKVtoNXbnyAwr4Ik4kzIQf+mqCv5qA==","signatures":[{"sig":"MEUCIF3sWsD6r5ndjgqhJ+jUjn8p9gqO7kjdhf8LqFPdxUciAiEAyV9abHOQ9pJAERKERf4p8JY1yf4q2Q47/m34Z2J0Ypo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":2054194},"main":"dist/index.cjs","type":"module","types":"dist/index.d.ts","module":"dist/index.mjs","gitHead":"d61240ffc098b925cb5309d8e955e670802615a0","scripts":{"test":"node --experimental-vm-modules --no-warnings --loader ts-node/esm ./node_modules/jest/bin/jest.js --no-coverage --silent","test-ci":"npm run test -- --no-coverage --watchAll=false --silent","build-cjs":"npm run build-bundle -- --outfile=dist/index.cjs --format=cjs --platform=node","build-mjs":"npm run build-bundle -- --outfile=dist/index.mjs --format=esm --platform=node","build-bundle":"esbuild ./src/index.js --main-fields=module,main --bundle --sourcemap","test-coverage":"npm run test -- --coverage --silent","build-minified":"npm run generate-parsers && tsc && npm run build-mjs-minified && npm run build-cjs-minified","prepublishOnly":"npm run build-minified && npm run test","generate-parsers":"antlr4ng -no-visitor -no-listener -Dlanguage=TypeScript -o src/compiler/generated -package parser -encoding utf8 -Xexact-output-dir src/compiler/*.g4","build-cjs-minified":"npm run build-cjs -- --minify","build-mjs-minified":"npm run build-mjs -- --minify"},"_npmUser":{"name":"mike.lischke","email":"mike@lischke-online.de"},"repository":{"url":"git+https://github.com/mike-lischke/stringtemplate4-ts.git","type":"git"},"_npmVersion":"10.8.2","description":"A TypeScript port of the Java StringTemplate 4 library","directories":{},"_nodeVersion":"22.5.1","dependencies":{"he":"1.2.0","luxon":"3.5.0","antlr4ng":"3.0.7","fast-printf":"1.6.9"},"_hasShrinkwrap":false,"devDependencies":{"jest":"29.7.0","eslint":"8.55.0","esbuild":"0.19.10","ts-jest":"29.1.1","ts-node":"10.9.2","@types/he":"1.2.3","typescript":"5.3.3","@types/jest":"29.5.11","@types/node":"20.10.4","@types/luxon":"3.4.0","antlr4ng-cli":"^2.0.0","eslint-plugin-jsdoc":"46.9.0","eslint-plugin-import":"2.29.0","@typescript-eslint/parser":"6.13.2","eslint-plugin-prefer-arrow":"1.2.3","@typescript-eslint/eslint-plugin":"6.14.0"},"_npmOperationalInternal":{"tmp":"tmp/stringtemplate4ts_1.0.2_1728551077617_0.983287029106241","host":"s3://npm-registry-packages"}},"1.0.3":{"name":"stringtemplate4ts","version":"1.0.3","keywords":["string","template"],"author":{"name":"Mike Lischke"},"license":"MIT","_id":"stringtemplate4ts@1.0.3","maintainers":[{"name":"mike.lischke","email":"mike@lischke-online.de"}],"homepage":"https://github.com/mike-lischke/stringtemplate4-ts#readme","bugs":{"url":"https://github.com/mike-lischke/stringtemplate4-ts/issues"},"dist":{"shasum":"8665faa1cbb671b39e718369dcb19bac363c3398","tarball":"https://registry.npmjs.org/stringtemplate4ts/-/stringtemplate4ts-1.0.3.tgz","fileCount":72,"integrity":"sha512-dmXR4pt6XzFBSbV0ZdNxkbcw3109J3x+id/XVYSlEmJezt2nKoYvnK4m15fRvrNwerrHymDDPRh0fRmvrU9/9w==","signatures":[{"sig":"MEYCIQC86Bt3cUtXE+ZqyQ46IyJxDm581HzCMyezlTPJHk7DpAIhAMj5f/OTWsjmCPl8VSZjqgBsG1uaMj0Wvh7N5Tq9vsBz","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":2054092},"main":"dist/index.cjs","type":"module","types":"dist/index.d.ts","module":"dist/index.mjs","gitHead":"6bade4f80fe40682faa2c2f510bcb8781272a479","scripts":{"test":"node --experimental-vm-modules --no-warnings --loader ts-node/esm ./node_modules/jest/bin/jest.js --no-coverage --silent","test-ci":"npm run test -- --no-coverage --watchAll=false --silent","build-cjs":"npm run build-bundle -- --outfile=dist/index.cjs --format=cjs --platform=node","build-mjs":"npm run build-bundle -- --outfile=dist/index.mjs --format=esm --platform=node","build-bundle":"esbuild ./src/index.js --main-fields=module,main --bundle --sourcemap","test-coverage":"npm run test -- --coverage --silent","build-minified":"npm run generate-parsers && tsc && npm run build-mjs-minified && npm run build-cjs-minified","prepublishOnly":"npm run build-minified && npm run test","generate-parsers":"antlr4ng -no-visitor -no-listener -Dlanguage=TypeScript -o src/compiler/generated -package parser -encoding utf8 -Xexact-output-dir src/compiler/*.g4","build-cjs-minified":"npm run build-cjs -- --minify","build-mjs-minified":"npm run build-mjs -- --minify"},"_npmUser":{"name":"mike.lischke","email":"mike@lischke-online.de"},"repository":{"url":"git+https://github.com/mike-lischke/stringtemplate4-ts.git","type":"git"},"_npmVersion":"10.8.2","description":"A TypeScript port of the Java StringTemplate 4 library","directories":{},"_nodeVersion":"22.5.1","dependencies":{"he":"1.2.0","luxon":"3.5.0","antlr4ng":"3.0.7","fast-printf":"1.6.9"},"_hasShrinkwrap":false,"devDependencies":{"jest":"29.7.0","eslint":"8.55.0","esbuild":"0.24.0","ts-jest":"29.1.1","ts-node":"10.9.2","@types/he":"1.2.3","typescript":"5.5.3","@types/jest":"29.5.14","@types/node":"20.10.4","@types/luxon":"3.4.2","antlr4ng-cli":"^2.0.0","eslint-plugin-jsdoc":"46.9.0","eslint-plugin-import":"2.29.0","@typescript-eslint/parser":"6.13.2","eslint-plugin-prefer-arrow":"1.2.3","@typescript-eslint/eslint-plugin":"6.14.0"},"_npmOperationalInternal":{"tmp":"tmp/stringtemplate4ts_1.0.3_1731769816755_0.7366054677282372","host":"s3://npm-registry-packages"}},"1.0.4":{"name":"stringtemplate4ts","version":"1.0.4","keywords":["string","template"],"author":{"name":"Mike Lischke"},"license":"MIT","_id":"stringtemplate4ts@1.0.4","maintainers":[{"name":"mike.lischke","email":"mike@lischke-online.de"}],"homepage":"https://github.com/mike-lischke/stringtemplate4-ts#readme","bugs":{"url":"https://github.com/mike-lischke/stringtemplate4-ts/issues"},"dist":{"shasum":"78bda8bdb5cc049e7716792b502cdd8ce0a765ab","tarball":"https://registry.npmjs.org/stringtemplate4ts/-/stringtemplate4ts-1.0.4.tgz","fileCount":72,"integrity":"sha512-1VV3PmCv/nk5VbZCr7ptGDr4sumEibmKfoRZf/Tvx0qGbPeUu17qym4pH0PeL8MLVDQUB/bd8tWsMos912p7KQ==","signatures":[{"sig":"MEUCIF+OnWEyeZC+7W5k2vKcy/GJDEZnZaWE87SB3ayQB8wzAiEAyujFADoau8k69kkVBvlbLuvCl9/NUiR1OsXWu3CRG6w=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":2054455},"main":"dist/index.cjs","type":"module","types":"dist/index.d.ts","module":"dist/index.mjs","gitHead":"6b145542ce1232fcaf5829005128bf83535c850d","scripts":{"test":"node --experimental-vm-modules --no-warnings --loader ts-node/esm ./node_modules/jest/bin/jest.js --no-coverage --silent","build":"npm run generate-parsers && tsc && npm run build-mjs && npm run build-cjs","test-ci":"npm run test -- --no-coverage --watchAll=false --silent","build-cjs":"npm run build-bundle -- --outfile=dist/index.cjs --format=cjs --platform=node","build-mjs":"npm run build-bundle -- --outfile=dist/index.mjs --format=esm --platform=node","build-bundle":"esbuild ./src/index.js --main-fields=module,main --bundle --sourcemap","test-coverage":"npm run test -- --coverage --silent","build-minified":"npm run generate-parsers && tsc && npm run build-mjs-minified && npm run build-cjs-minified","prepublishOnly":"npm run build-minified && npm run test","generate-parsers":"antlr4ng -no-visitor -no-listener -Dlanguage=TypeScript -o src/compiler/generated -package parser -encoding utf8 -Xexact-output-dir src/compiler/*.g4","build-cjs-minified":"npm run build-cjs -- --minify","build-mjs-minified":"npm run build-mjs -- --minify"},"_npmUser":{"name":"mike.lischke","email":"mike@lischke-online.de"},"repository":{"url":"git+https://github.com/mike-lischke/stringtemplate4-ts.git","type":"git"},"_npmVersion":"10.8.2","description":"A TypeScript port of the Java StringTemplate 4 library","directories":{},"_nodeVersion":"22.5.1","dependencies":{"he":"1.2.0","luxon":"3.5.0","antlr4ng":"3.0.7","fast-printf":"1.6.9"},"_hasShrinkwrap":false,"devDependencies":{"jest":"29.7.0","eslint":"8.55.0","esbuild":"0.24.0","ts-jest":"29.1.1","ts-node":"10.9.2","@types/he":"1.2.3","typescript":"5.5.3","@types/jest":"29.5.14","@types/node":"20.10.4","@types/luxon":"3.4.2","antlr4ng-cli":"^2.0.0","eslint-plugin-jsdoc":"46.9.0","eslint-plugin-import":"2.29.0","@typescript-eslint/parser":"6.13.2","eslint-plugin-prefer-arrow":"1.2.3","@typescript-eslint/eslint-plugin":"6.14.0"},"_npmOperationalInternal":{"tmp":"tmp/stringtemplate4ts_1.0.4_1733056526563_0.11930960868953111","host":"s3://npm-registry-packages"}},"1.0.5":{"name":"stringtemplate4ts","version":"1.0.5","keywords":["string","template"],"author":{"name":"Mike Lischke"},"license":"MIT","_id":"stringtemplate4ts@1.0.5","maintainers":[{"name":"mike.lischke","email":"mike@lischke-online.de"}],"homepage":"https://github.com/mike-lischke/stringtemplate4-ts#readme","bugs":{"url":"https://github.com/mike-lischke/stringtemplate4-ts/issues"},"dist":{"shasum":"3dfb6a15423d6c491b0d987254d4e3a83ad2c859","tarball":"https://registry.npmjs.org/stringtemplate4ts/-/stringtemplate4ts-1.0.5.tgz","fileCount":72,"integrity":"sha512-rXyyHeqZ8M1O6GHmDzoqEbOb5bVPLuVsOiK7JT5wcrULZI1xMr3fstxdJGbcBIYT34LNDjY1G9XTJo5BTGyoIw==","signatures":[{"sig":"MEQCIBp8ME6/6SHHpag8SlEGC5esDHI1N8s3alPjOXK32Y5bAiAtI/39YnNrh/pPV4QUVGAKO4+vUDQaoP+zwi0G9tuMlQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":2068442},"main":"dist/index.cjs","type":"module","types":"dist/index.d.ts","module":"dist/index.mjs","gitHead":"fe39e1c2f1c10b9c629759afa2854e8c1ce1880d","scripts":{"test":"node --experimental-vm-modules --no-warnings --loader ts-node/esm ./node_modules/jest/bin/jest.js --no-coverage --silent","build":"npm run generate-parsers && tsc && npm run build-mjs && npm run build-cjs","test-ci":"npm run test -- --no-coverage --watchAll=false --silent","build-cjs":"npm run build-bundle -- --outfile=dist/index.cjs --format=cjs --platform=node","build-mjs":"npm run build-bundle -- --outfile=dist/index.mjs --format=esm --platform=node","build-bundle":"esbuild ./src/index.js --main-fields=module,main --bundle --sourcemap","test-coverage":"npm run test -- --coverage --silent","build-minified":"npm run generate-parsers && tsc && npm run build-mjs-minified && npm run build-cjs-minified","prepublishOnly":"npm run build-minified && npm run test","generate-parsers":"antlr4ng -no-visitor -no-listener -Dlanguage=TypeScript -o src/compiler/generated -package parser -encoding utf8 -Xexact-output-dir src/compiler/*.g4","build-cjs-minified":"npm run build-cjs -- --minify","build-mjs-minified":"npm run build-mjs -- --minify"},"_npmUser":{"name":"mike.lischke","email":"mike@lischke-online.de"},"repository":{"url":"git+https://github.com/mike-lischke/stringtemplate4-ts.git","type":"git"},"_npmVersion":"10.8.2","description":"A TypeScript port of the Java StringTemplate 4 library","directories":{},"_nodeVersion":"22.5.1","dependencies":{"he":"1.2.0","luxon":"3.5.0","antlr4ng":"3.0.7","fast-printf":"1.6.9"},"_hasShrinkwrap":false,"devDependencies":{"jest":"29.7.0","eslint":"8.55.0","esbuild":"0.24.0","ts-jest":"29.1.1","ts-node":"10.9.2","@types/he":"1.2.3","typescript":"5.5.3","@types/jest":"29.5.14","@types/node":"20.10.4","@types/luxon":"3.4.2","antlr4ng-cli":"^2.0.0","eslint-plugin-jsdoc":"46.9.0","eslint-plugin-import":"2.29.0","@typescript-eslint/parser":"6.13.2","eslint-plugin-prefer-arrow":"1.2.3","@typescript-eslint/eslint-plugin":"6.14.0"},"_npmOperationalInternal":{"tmp":"tmp/stringtemplate4ts_1.0.5_1734262675088_0.19273587219065935","host":"s3://npm-registry-packages-npm-production"}},"1.0.6":{"name":"stringtemplate4ts","version":"1.0.6","keywords":["string","template"],"author":{"name":"Mike Lischke"},"license":"MIT","_id":"stringtemplate4ts@1.0.6","maintainers":[{"name":"mike.lischke","email":"mike@lischke-online.de"}],"homepage":"https://github.com/mike-lischke/stringtemplate4-ts#readme","bugs":{"url":"https://github.com/mike-lischke/stringtemplate4-ts/issues"},"dist":{"shasum":"dbf852114def5769ffa0ee3c2509b959b7a1b0a9","tarball":"https://registry.npmjs.org/stringtemplate4ts/-/stringtemplate4ts-1.0.6.tgz","fileCount":73,"integrity":"sha512-+iiR9H7AvzaKEMAciok8/UlmWMBwfPnUIJS189VMl6tOe9nyRJ6iJG+xvyacUi133WNQn7YrzRwF3keibWolCQ==","signatures":[{"sig":"MEYCIQCKvYmUN7DIorIVC32DQCi9560wTOAqj7Le89fzeCN1ygIhALEwYhv0t+gxsaOYHyJmKfT3+idGK6M4Zrd+ZaAXwQZh","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":2076579},"main":"dist/index.cjs","type":"module","types":"dist/index.d.ts","module":"dist/index.mjs","gitHead":"aec82125a7e92958a88c9dcce0db75c9c89022c4","scripts":{"test":"node --experimental-vm-modules --no-warnings --loader ts-node/esm ./node_modules/jest/bin/jest.js --no-coverage --silent","build":"npm run generate-parsers && tsc && npm run build-mjs && npm run build-cjs","test-ci":"npm run test -- --no-coverage --watchAll=false --silent","build-cjs":"npm run build-bundle -- --outfile=dist/index.cjs --format=cjs --platform=node","build-mjs":"npm run build-bundle -- --outfile=dist/index.mjs --format=esm --platform=node","build-bundle":"esbuild ./src/index.js --main-fields=module,main --bundle --sourcemap","test-coverage":"npm run test -- --coverage --silent","build-minified":"npm run generate-parsers && tsc && npm run build-mjs-minified && npm run build-cjs-minified","prepublishOnly":"npm run build-minified && npm run test","generate-parsers":"antlr4ng -no-visitor -no-listener -Dlanguage=TypeScript -o src/compiler/generated -package parser -encoding utf8 -Xexact-output-dir src/compiler/*.g4","build-cjs-minified":"npm run build-cjs -- --minify","build-mjs-minified":"npm run build-mjs -- --minify"},"_npmUser":{"name":"mike.lischke","email":"mike@lischke-online.de"},"repository":{"url":"git+https://github.com/mike-lischke/stringtemplate4-ts.git","type":"git"},"_npmVersion":"10.8.2","description":"A TypeScript port of the Java StringTemplate 4 library","directories":{},"_nodeVersion":"22.5.1","dependencies":{"he":"1.2.0","luxon":"3.5.0","antlr4ng":"3.0.13","fast-printf":"1.6.9"},"_hasShrinkwrap":false,"devDependencies":{"jest":"29.7.0","eslint":"8.55.0","esbuild":"0.24.0","ts-jest":"29.1.1","ts-node":"10.9.2","@types/he":"1.2.3","typescript":"5.5.3","@types/jest":"29.5.14","@types/node":"20.10.4","@types/luxon":"3.4.2","antlr4ng-cli":"^2.0.0","eslint-plugin-jsdoc":"46.9.0","eslint-plugin-import":"2.29.0","@typescript-eslint/parser":"6.13.2","eslint-plugin-prefer-arrow":"1.2.3","@typescript-eslint/eslint-plugin":"6.14.0"},"_npmOperationalInternal":{"tmp":"tmp/stringtemplate4ts_1.0.6_1734611839010_0.040236709830169026","host":"s3://npm-registry-packages-npm-production"}},"1.0.7":{"name":"stringtemplate4ts","version":"1.0.7","keywords":["string","template"],"author":{"name":"Mike Lischke"},"license":"MIT","_id":"stringtemplate4ts@1.0.7","maintainers":[{"name":"mike.lischke","email":"mike@lischke-online.de"}],"homepage":"https://github.com/mike-lischke/stringtemplate4-ts#readme","bugs":{"url":"https://github.com/mike-lischke/stringtemplate4-ts/issues"},"dist":{"shasum":"b7580e4312137100128cfe0b881a764dc0853eac","tarball":"https://registry.npmjs.org/stringtemplate4ts/-/stringtemplate4ts-1.0.7.tgz","fileCount":73,"integrity":"sha512-h3XCMcD6IgcnrDEzO5S2iVNjEkcYmYFPPQRs0fV7788FhdgxO4i2gRZPFk3CZi4J+bG+R/PNRPFEe9a0DIJGpg==","signatures":[{"sig":"MEUCIQD6yvlE0OJQUgm9N9uqj+fIl2ml8SQoiYfEvWKnkAfZxgIgMSQQKU0kVoAo26aojagwqNc9KQBZHNjYECkV9jCbWLc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":2077044},"main":"dist/index.cjs","type":"module","types":"dist/index.d.ts","module":"dist/index.mjs","gitHead":"9e726789fc285c953c8657a7dea4f8585960a288","scripts":{"test":"node --experimental-vm-modules --no-warnings --loader ts-node/esm ./node_modules/jest/bin/jest.js --no-coverage --silent","build":"npm run generate-parsers && tsc && npm run build-mjs && npm run build-cjs","test-ci":"npm run test -- --no-coverage --watchAll=false --silent","build-cjs":"npm run build-bundle -- --outfile=dist/index.cjs --format=cjs --platform=node","build-mjs":"npm run build-bundle -- --outfile=dist/index.mjs --format=esm --platform=node","build-bundle":"esbuild ./src/index.js --main-fields=module,main --bundle --sourcemap","test-coverage":"npm run test -- --coverage --silent","build-minified":"npm run generate-parsers && tsc && npm run build-mjs-minified && npm run build-cjs-minified","prepublishOnly":"npm run build-minified && npm run test","generate-parsers":"antlr4ng -no-visitor -no-listener -Dlanguage=TypeScript -o src/compiler/generated -package parser -encoding utf8 -Xexact-output-dir src/compiler/*.g4","build-cjs-minified":"npm run build-cjs -- --minify","build-mjs-minified":"npm run build-mjs -- --minify"},"_npmUser":{"name":"mike.lischke","email":"mike@lischke-online.de"},"repository":{"url":"git+https://github.com/mike-lischke/stringtemplate4-ts.git","type":"git"},"_npmVersion":"10.8.2","description":"A TypeScript port of the Java StringTemplate 4 library","directories":{},"_nodeVersion":"22.5.1","dependencies":{"he":"1.2.0","luxon":"3.5.0","antlr4ng":"3.0.13","fast-printf":"1.6.9"},"_hasShrinkwrap":false,"devDependencies":{"jest":"29.7.0","eslint":"8.55.0","esbuild":"0.24.0","ts-jest":"29.1.1","ts-node":"10.9.2","@types/he":"1.2.3","typescript":"5.5.3","@types/jest":"29.5.14","@types/node":"20.10.4","@types/luxon":"3.4.2","antlr4ng-cli":"^2.0.0","eslint-plugin-jsdoc":"46.9.0","eslint-plugin-import":"2.29.0","@typescript-eslint/parser":"6.13.2","eslint-plugin-prefer-arrow":"1.2.3","@typescript-eslint/eslint-plugin":"6.14.0"},"_npmOperationalInternal":{"tmp":"tmp/stringtemplate4ts_1.0.7_1735134226013_0.333486948925215","host":"s3://npm-registry-packages-npm-production"}},"1.0.8":{"name":"stringtemplate4ts","version":"1.0.8","keywords":["string","template"],"author":{"name":"Mike Lischke"},"license":"MIT","_id":"stringtemplate4ts@1.0.8","maintainers":[{"name":"mike.lischke","email":"mike@lischke-online.de"}],"homepage":"https://github.com/mike-lischke/stringtemplate4-ts#readme","bugs":{"url":"https://github.com/mike-lischke/stringtemplate4-ts/issues"},"dist":{"shasum":"d19115639d44faf3dcbad1afa768a090ac56a56a","tarball":"https://registry.npmjs.org/stringtemplate4ts/-/stringtemplate4ts-1.0.8.tgz","fileCount":75,"integrity":"sha512-2xokrVNVJ2N3SCjjMj/9urnh9GCcUz0QZd6KCufyUSYwggIwymKNBUjZ88drqMBzzoER/SLIlJ+TiSpU6KICmA==","signatures":[{"sig":"MEUCIQD73VOOw1rrLOsLsfrQylyLSEa+puncPXfNhtTsGoT29gIgKr5CAcBZAbBqh3wFk0LXnEqENIevsUsquwrPv+YSgcs=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2106227},"main":"dist/index.cjs","type":"module","types":"dist/index.d.ts","module":"dist/index.mjs","gitHead":"366cd7c88414b533839f3618b4c4c7e2aa1ef71c","scripts":{"test":"node --experimental-vm-modules --no-warnings --loader ts-node/esm ./node_modules/jest/bin/jest.js --no-coverage --silent","build":"npm run generate-parsers && tsc && npm run build-mjs && npm run build-cjs","test-ci":"npm run test -- --no-coverage --watchAll=false --silent","build-cjs":"npm run build-bundle -- --outfile=dist/index.cjs --format=cjs --platform=node","build-mjs":"npm run build-bundle -- --outfile=dist/index.mjs --format=esm --platform=node","build-bundle":"esbuild ./src/index.js --main-fields=module,main --bundle --sourcemap","test-coverage":"npm run test -- --coverage --silent","build-minified":"npm run generate-parsers && tsc && npm run build-mjs-minified && npm run build-cjs-minified","prepublishOnly":"npm run build-minified && npm run test","generate-parsers":"antlr-ng -Dlanguage=TypeScript -o src/compiler/generated --package parser --exact-output-dir --encoding utf8 src/compiler/*.g4","build-cjs-minified":"npm run build-cjs -- --minify","build-mjs-minified":"npm run build-mjs -- --minify"},"_npmUser":{"name":"mike.lischke","email":"mike@lischke-online.de"},"repository":{"url":"git+https://github.com/mike-lischke/stringtemplate4-ts.git","type":"git"},"_npmVersion":"11.1.0","description":"A TypeScript port of the Java StringTemplate 4 library","directories":{},"_nodeVersion":"22.13.1","dependencies":{"he":"1.2.0","luxon":"3.5.0","antlr4ng":"3.0.14","fast-printf":"1.6.10"},"_hasShrinkwrap":false,"devDependencies":{"jest":"29.7.0","eslint":"8.55.0","esbuild":"0.25.0","ts-jest":"29.1.1","ts-node":"10.9.2","antlr-ng":"1.0.1","@types/he":"1.2.3","typescript":"5.5.3","@types/jest":"29.5.14","@types/node":"22.13.5","@types/luxon":"3.4.2","eslint-plugin-jsdoc":"46.9.0","eslint-plugin-import":"2.29.0","@typescript-eslint/parser":"6.13.2","eslint-plugin-prefer-arrow":"1.2.3","@typescript-eslint/eslint-plugin":"6.14.0"},"_npmOperationalInternal":{"tmp":"tmp/stringtemplate4ts_1.0.8_1740334495824_0.24572755391674495","host":"s3://npm-registry-packages-npm-production"}},"1.0.9":{"name":"stringtemplate4ts","version":"1.0.9","keywords":["string","template"],"author":{"name":"Mike Lischke"},"license":"MIT","_id":"stringtemplate4ts@1.0.9","maintainers":[{"name":"mike.lischke","email":"mike@lischke-online.de"}],"homepage":"https://github.com/mike-lischke/stringtemplate4-ts#readme","bugs":{"url":"https://github.com/mike-lischke/stringtemplate4-ts/issues"},"dist":{"shasum":"b48c10f10218a6729b32de188d879439959f9b53","tarball":"https://registry.npmjs.org/stringtemplate4ts/-/stringtemplate4ts-1.0.9.tgz","fileCount":75,"integrity":"sha512-KYZm2bJlSjynG5Y+L46fkaKBQG6mhV6hb2RBA8dpx3/Vj6G4u7gwXNKYvaN9+QD5sj68/1srtSNDvqEso7MwsQ==","signatures":[{"sig":"MEYCIQC24uvU4oJrTvEK1hSjCyF9gN/57K+kbUsNLviz6yPV6gIhAOCOhnrvQURFrnPRXK+GHSJqYEBClX9wQqprj11gg1vB","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2106273},"main":"dist/index.cjs","type":"module","types":"dist/index.d.ts","module":"dist/index.mjs","gitHead":"366cd7c88414b533839f3618b4c4c7e2aa1ef71c","scripts":{"test":"node --experimental-vm-modules --no-warnings --loader ts-node/esm ./node_modules/jest/bin/jest.js --no-coverage --silent","build":"npm run generate-parsers && tsc && npm run build-mjs && npm run build-cjs","test-ci":"npm run test -- --no-coverage --watchAll=false --silent","build-cjs":"npm run build-bundle -- --outfile=dist/index.cjs --format=cjs --platform=node","build-mjs":"npm run build-bundle -- --outfile=dist/index.mjs --format=esm --platform=node","build-bundle":"esbuild ./src/index.js --main-fields=module,main --bundle --sourcemap","test-coverage":"npm run test -- --coverage --silent","build-minified":"npm run generate-parsers && tsc && npm run build-mjs-minified && npm run build-cjs-minified","prepublishOnly":"npm run build-minified && npm run test","generate-parsers":"antlr-ng -Dlanguage=TypeScript -o src/compiler/generated --package parser --exact-output-dir --encoding utf8 src/compiler/*.g4","build-cjs-minified":"npm run build-cjs -- --minify","build-mjs-minified":"npm run build-mjs -- --minify"},"_npmUser":{"name":"mike.lischke","email":"mike@lischke-online.de"},"repository":{"url":"git+https://github.com/mike-lischke/stringtemplate4-ts.git","type":"git"},"_npmVersion":"11.1.0","description":"A TypeScript port of the Java StringTemplate 4 library","directories":{},"_nodeVersion":"22.13.1","dependencies":{"he":"1.2.0","luxon":"3.5.0","antlr4ng":"3.0.15","fast-printf":"1.6.10"},"_hasShrinkwrap":false,"devDependencies":{"jest":"29.7.0","eslint":"8.55.0","esbuild":"0.25.0","ts-jest":"29.1.1","ts-node":"10.9.2","antlr-ng":"1.0.2","@types/he":"1.2.3","typescript":"5.5.3","@types/jest":"29.5.14","@types/node":"22.13.5","@types/luxon":"3.4.2","eslint-plugin-jsdoc":"46.9.0","eslint-plugin-import":"2.29.0","@typescript-eslint/parser":"6.13.2","eslint-plugin-prefer-arrow":"1.2.3","@typescript-eslint/eslint-plugin":"6.14.0"},"_npmOperationalInternal":{"tmp":"tmp/stringtemplate4ts_1.0.9_1740399572503_0.6681270407604523","host":"s3://npm-registry-packages-npm-production"}},"2.0.0":{"name":"stringtemplate4ts","version":"2.0.0","keywords":["string","template"],"author":{"name":"Mike Lischke"},"license":"MIT","_id":"stringtemplate4ts@2.0.0","maintainers":[{"name":"mike.lischke","email":"mike@lischke-online.de"}],"homepage":"https://github.com/mike-lischke/stringtemplate4-ts#readme","bugs":{"url":"https://github.com/mike-lischke/stringtemplate4-ts/issues"},"dist":{"shasum":"fa927e4d1c04e8bf567ff7679e8bbe244a1570ce","tarball":"https://registry.npmjs.org/stringtemplate4ts/-/stringtemplate4ts-2.0.0.tgz","fileCount":75,"integrity":"sha512-FCNikXPjVnnkPnwet4fZ2RLkvSZWBQQkgh58AzigW4Fs4eyIq22WJL2I1nePEnu22njfx10yninKKtMWSXohCw==","signatures":[{"sig":"MEUCIDdUrq2koTRPjunLvdPe5Ub/LE4T/5q/QEAzyrzRrA/iAiEAtWUdjNfNaNDvXVRhSdu6935s+0EBwybl3txczr0XzrQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2266080},"main":"dist/index.cjs","type":"module","types":"dist/index.d.ts","module":"dist/index.mjs","gitHead":"469419f118c75f7384d8d66460a34b5ceaec28cc","scripts":{"test":"node --experimental-vm-modules --no-warnings --loader ts-node/esm ./node_modules/jest/bin/jest.js --no-coverage --silent","build":"npm run generate-parsers && tsc && npm run build-mjs && npm run build-cjs","test-ci":"npm run test -- --no-coverage --watchAll=false --silent","build-cjs":"npm run build-bundle -- --outfile=dist/index.cjs --format=cjs --platform=node","build-mjs":"npm run build-bundle -- --outfile=dist/index.mjs --format=esm --platform=node","build-bundle":"esbuild ./src/index.js --main-fields=module,main --bundle --sourcemap","test-coverage":"npm run test -- --coverage --silent","build-minified":"npm run generate-parsers && tsc && npm run build-mjs-minified && npm run build-cjs-minified","prepublishOnly":"npm run build-minified && npm run test","generate-parsers":"antlr-ng -Dlanguage=TypeScript -o src/compiler/generated --package parser --exact-output-dir --encoding utf8 src/compiler/*.g4","build-cjs-minified":"npm run build-cjs -- --minify","build-mjs-minified":"npm run build-mjs -- --minify"},"_npmUser":{"name":"mike.lischke","email":"mike@lischke-online.de"},"repository":{"url":"git+https://github.com/mike-lischke/stringtemplate4-ts.git","type":"git"},"_npmVersion":"11.1.0","description":"A TypeScript port of the Java StringTemplate 4 library","directories":{},"_nodeVersion":"22.13.1","dependencies":{"he":"1.2.0","luxon":"3.5.0","memfs":"4.17.0","antlr4ng":"3.0.16","fast-printf":"1.6.10"},"_hasShrinkwrap":false,"devDependencies":{"jest":"29.7.0","eslint":"8.55.0","esbuild":"0.25.0","ts-jest":"29.1.1","ts-node":"10.9.2","antlr-ng":"1.0.9","@types/he":"1.2.3","typescript":"5.8.2","@types/jest":"29.5.14","@types/luxon":"3.4.2","eslint-plugin-jsdoc":"46.9.0","eslint-plugin-import":"2.29.0","@typescript-eslint/parser":"6.13.2","eslint-plugin-prefer-arrow":"1.2.3","@typescript-eslint/eslint-plugin":"6.14.0"},"_npmOperationalInternal":{"tmp":"tmp/stringtemplate4ts_2.0.0_1742120613003_0.11711719025854683","host":"s3://npm-registry-packages-npm-production"}},"2.0.1":{"name":"stringtemplate4ts","version":"2.0.1","description":"A TypeScript port of the Java StringTemplate 4 library","type":"module","main":"dist/index.cjs","module":"dist/index.mjs","types":"dist/index.d.ts","repository":{"type":"git","url":"git+https://github.com/mike-lischke/stringtemplate4-ts.git"},"keywords":["string","template"],"author":{"name":"Mike Lischke"},"license":"MIT","scripts":{"prepublishOnly":"npm run build-minified && npm run test","build":"npm run generate-parsers && tsc && npm run build-mjs && npm run build-cjs","build-minified":"npm run generate-parsers && tsc && npm run build-mjs-minified && npm run build-cjs-minified","build-bundle":"esbuild ./src/index.js --main-fields=module,main --bundle --sourcemap","build-mjs":"npm run build-bundle -- --outfile=dist/index.mjs --format=esm --platform=node","build-mjs-minified":"npm run build-mjs -- --minify","build-cjs":"npm run build-bundle -- --outfile=dist/index.cjs --format=cjs --platform=node","build-cjs-minified":"npm run build-cjs -- --minify","test":"node --experimental-vm-modules --no-warnings --loader ts-node/esm ./node_modules/jest/bin/jest.js --no-coverage --silent","test-ci":"npm run test -- --no-coverage --watchAll=false --silent","test-coverage":"npm run test -- --coverage --silent","generate-parsers":"antlr-ng -Dlanguage=TypeScript -o src/compiler/generated --package parser --exact-output-dir --encoding utf8 src/compiler/*.g4"},"dependencies":{"antlr4ng":"3.0.16","fast-printf":"1.6.10","he":"1.2.0","luxon":"3.5.0","memfs":"4.17.0"},"devDependencies":{"@types/he":"1.2.3","@types/jest":"29.5.14","@types/luxon":"3.4.2","@typescript-eslint/eslint-plugin":"6.14.0","@typescript-eslint/parser":"6.13.2","antlr-ng":"1.0.9","esbuild":"0.25.0","eslint":"8.55.0","eslint-plugin-import":"2.29.0","eslint-plugin-jsdoc":"46.9.0","eslint-plugin-prefer-arrow":"1.2.3","jest":"29.7.0","ts-jest":"29.1.1","ts-node":"10.9.2","typescript":"5.8.2"},"_id":"stringtemplate4ts@2.0.1","gitHead":"3cf15913dc84281e1a4919e989107b4135644e81","bugs":{"url":"https://github.com/mike-lischke/stringtemplate4-ts/issues"},"homepage":"https://github.com/mike-lischke/stringtemplate4-ts#readme","_nodeVersion":"22.13.1","_npmVersion":"11.1.0","dist":{"integrity":"sha512-yZK6xFZ6RFP+y6noXKY37rj4+HY4dbzQXzt0epb2aiMu1BOU9WAZWAI9c/di0GMcyUblwlooOFS3IrggfGKsOA==","shasum":"dc7a02904c68f93272bc4622759250d2f841d334","tarball":"https://registry.npmjs.org/stringtemplate4ts/-/stringtemplate4ts-2.0.1.tgz","fileCount":75,"unpackedSize":2266915,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDIykfYK9tT5469UAniJSv1PBQHx2z4ZB+mieRfjnFGqQIhANcYko0QOxh3KmpSlRh/tty88Ty7SlMLh+rHDIysHp+Y"}]},"_npmUser":{"name":"mike.lischke","email":"mike@lischke-online.de"},"directories":{},"maintainers":[{"name":"mike.lischke","email":"mike@lischke-online.de"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/stringtemplate4ts_2.0.1_1742574053270_0.7429978680930225"},"_hasShrinkwrap":false}},"time":{"created":"2024-01-16T12:00:03.975Z","modified":"2025-03-21T16:20:53.796Z","1.0.0":"2024-01-16T12:00:04.200Z","1.0.1":"2024-01-16T16:56:21.232Z","1.0.2":"2024-10-10T09:04:37.909Z","1.0.3":"2024-11-16T15:10:17.026Z","1.0.4":"2024-12-01T12:35:26.779Z","1.0.5":"2024-12-15T11:37:55.307Z","1.0.6":"2024-12-19T12:37:19.277Z","1.0.7":"2024-12-25T13:43:46.272Z","1.0.8":"2025-02-23T18:14:56.045Z","1.0.9":"2025-02-24T12:19:32.775Z","2.0.0":"2025-03-16T10:23:33.430Z","2.0.1":"2025-03-21T16:20:53.596Z"},"bugs":{"url":"https://github.com/mike-lischke/stringtemplate4-ts/issues"},"author":{"name":"Mike Lischke"},"license":"MIT","homepage":"https://github.com/mike-lischke/stringtemplate4-ts#readme","keywords":["string","template"],"repository":{"type":"git","url":"git+https://github.com/mike-lischke/stringtemplate4-ts.git"},"description":"A TypeScript port of the Java StringTemplate 4 library","maintainers":[{"name":"mike.lischke","email":"mike@lischke-online.de"}],"readme":"[![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/mike-lischke/stringtemplate4ts/nodejs.yml?style=for-the-badge&logo=github)](https://github.com/mike-lischke/stringtemplate4ts/actions/workflows/nodejs.yml)\n[![Weekly Downloads](https://img.shields.io/npm/dw/stringtemplate4ts?style=for-the-badge&color=blue)](https://www.npmjs.com/package/stringtemplate4ts)\n[![npm version](https://img.shields.io/npm/v/stringtemplate4ts?style=for-the-badge&color=yellow)](https://www.npmjs.com/package/stringtemplate4ts)\n\n# Introduction\n\nThis repository contains a TypeScript port of the StringTemplate 4 template engine. It's released under the BSD license, like the original code, plus some additional code, which is released under the MIT license. These are:\n\n- Testing infrastructure code (decorators, JUnit wrappers, configuration and spec files)\n- A MurmurHash implementation used by the HashMap class.\n- The HashMap class.\n\n> **Breaking Change:**\n> Starting with version 2.0 the package no longer depends on any Node.js support. Instead it's now ready to be used also in browser environments. To make this possible the file system to be used can now be configured. By default [memfs](https://github.com/streamich/memfs) is used, but can also specify Node.js `fs`.\n> \n> Read more below in the \"How To Use\" section.\n\nST4TS (StringTemplate4TypeScript) is a template engine for generating source code, web pages, emails, or any other formatted text output. ST4TS is particularly good at multi-targeted code generators, multiple site skins, and internationalization/localization.\n\nThe main website for the original ST implementation is:\n\n> https://www.stringtemplate.org\n\nIts distinguishing characteristic is that it strictly enforces\nmodel-view separation, unlike other engines. See [this document](./doc/mvc.templates.pdf)\n\nThe documentation is [here](./doc/index.md)\n\nPer the BSD license in [LICENSE.txt](LICENSE.txt), this software is not guaranteed to work and might even destroy all life on this planet.\n\n## Known Differences\n\nThe port closely resembles the original. Luckily, Java and TypeScript share many similarities, allowing for the implementation of even esoteric language features such as runtime method access and invocation using string names (also known as reflection). However, there are a few differences, which are listed below:\n\n- Importing modules is different in both languages and can be challenging when dealing with circular dependencies. To avoid these dependencies, interfaces and factory methods have been defined for certain classes that refer to each other. This should not impose any restrictions for normal usage.\n- Formatting numbers with arbitrary format strings and locale support is not available. We can either have locale aware formatting using the standard `toLocaleString` method or we can have a custom format string pattern, not both. I decided for the latter (which uses the `fast-printf` library). Once I have found a library which supports both (such as `luxon` for date and time), this can be improved.\n\n## Installation\n\nRun\n\n```bash\nnpm i stringtemplate4ts\n```\n\nOr use your preferred package manager.\n\n## How to Use\n\nST4TS works with template (`*.st`) and template group (`*.stg`) files. These files can import other files, which makes it necessary to provide a file system from which the automatic import can be performed. In Java the library directly accessed the real file system, which is not desirable in a web environment. Instead [memfs](https://github.com/streamich/memfs) comes into play. You can use it just like you use a disk based file system. The only difference is that you first have to transfer your group files to memfs under any path you like (which you then pass on to the ST4TS classes).\n\nThere's a way to use the [native filesystem](https://github.com/streamich/memfs/blob/master/docs/node/index.md) with memfs, if you still want that.\n\nOther than that there's no difference in usage. For example the test cases still look the same as before. Here's one example:\n\n```typescript\n    @Test\n    public testSimpleAdaptor(): void {\n        const templates = \"foo(x) ::= \\\"<x.id>: <x.name>\\\"\\n\";\n        TestModelAdaptors.writeFile(this.tmpdir, \"foo.stg\", templates);\n        const group = new STGroupFile(this.tmpdir + \"/foo.stg\");\n        group.registerModelAdaptor(BaseTest.User, new TestModelAdaptors.UserAdaptor());\n        const st = group.getInstanceOf(\"foo\");\n        st?.add(\"x\", new BaseTest.User(100, \"parrt\"));\n        const expecting = \"100: parrt\";\n        const result = st?.render();\n        assertEquals(expecting, result);\n    }\n```\n\nsimply because they already generate all files manually. The function used to write the file is this:\n\n```typescript\n    public static writeFile(dir: string, fileName: string, content: string): void {\n        try {\n            const f = dir + \"/\" + fileName;\n            const realDir = dirname(f); // fileName can contain subdirectories.\n            if (!fs.existsSync(realDir)) {\n                fs.mkdirSync(realDir, { recursive: true });\n            }\n\n            fs.writeFileSync(f, content);\n        } catch (ioe) {\n            if (ioe instanceof Error) {\n                console.error(\"can't write file \" + fileName + \"\\n\" + ioe.stack);\n            } else {\n                throw ioe;\n            }\n        }\n    }\n\n```\n\nThe general approach, however, is to create an own file system and prime it with the files you need. Here's an example from the [memfs documentation](https://github.com/streamich/memfs/blob/master/docs/node/usage.md):\n\n```typescript\nimport { fs, vol } from 'memfs';\n\nconst json = {\n  './README.md': '1',\n  './src/index.js': '2',\n  './node_modules/debug/index.js': '3',\n};\nvol.fromJSON(json, '/app');\n\nfs.readFileSync('/app/README.md', 'utf8'); // 1\nvol.readFileSync('/app/src/index.js', 'utf8'); // 2\n```\n\nThis allows to get the template files from anywhere (file system, fetch, HTML input fields, source code etc.).\n\nHere's a real life example for the use of a custom file system in ST4TS.\n\n```typescript\nimport { memfs } from \"memfs\";\n\n// Create the new private file system.\nconst { fs } = memfs();\n\n// Tell ST4TS to use it.\nuseFileSystem(fs);\n\n// Create a root folder for your templates and copy them from the physical disk into that.\nfs.mkdirSync(\"/templates\", { recursive: true });\n\n// Copy here all the files from the physical file system to the virtual one.\n...\n\n```\n\nWith that in place you can start creating STGroupFile instances (etc.) and give them the path from your virtual file system.\n\n## Building from Source\n\nThe source is at github.com:\n\n> https://github.com/mike-lischke/stringtemplate4ts\n\nCheck the repository out and run\n\n```bash\nnpm run build\n```\n\nin the project root.\n\n## Running Unit Tests\n\nRunning the tests is equally simple. Just do:\n\n```bash\nnpm run test\n```\n\nin the project root.\n\n## Release Notes\n\n### 2.0.1\n\nAllow configuration of ST4TS with a custom file system.\n\n### 2.0.0\n\nThe library no longer needs Node.js to run. Instead it uses the in-memory file system memfs.\n\n### 1.0.9\n\nAlso switched 3rd party deps that depended on antlr4ng-cli.\n\n### 1.0.8\n\nSwitched from antlr4ng-cli to antlr-ng.\n\n### 1.0.7\n\n- The if<> check in Interpreter did not correctly handle maps and sets. Added a test case for the fix.\n- Renderer registration did not default the parameter \"recursive\" to true, causing rendering problems in nested templates, if this parameter isn't specified.\n\n### 1.0.6\n\n- Updated 3rd party packages.\n\n### 1.0.5\n\n- Property names for map model objects can be anything, including numbers or null. Using a general falsification test might wrongly reject them.\n\n### 1.0.4\n\n- Bug fix for HashMap. It used get() to determine if a key exists (which returns the value instead).\n\n### 1.0.3\n\n- Fixed a bug where members of model objects, which are themselves object were not accessible in templates. Added a test case for that.\n\n### 1.0.2\n\n- Upgraded dependencies to latest versions.\n- Added export for common interfaces.\n\n### 1.0.0 - 1.0.1\n\n- Initial release.\n- Changed build structure to include both CommonJS and ES6 modules.\n","readmeFilename":"ReadMe.md"}