{"_id":"ds-tpl","_rev":"11-d5e939e2545b01288d6e0c1151d6f747","name":"ds-tpl","description":"Dead-simple, fast text templates","dist-tags":{"latest":"1.4.2"},"versions":{"1.0.0":{"name":"ds-tpl","version":"1.0.0","description":"Dead-simple, fast text templates","main":"lib/index.js","scripts":{"build":"babel src --out-dir lib","test":"mocha --compilers js:babel-register --recursive test","test:watch":"mocha --compilers js:babel-register --recursive -w \"test/**/*.test.js\" test","prepublish":"npm run build && npm test"},"publishConfig":{"registry":"https://registry.npmjs.org/"},"repository":{"type":"git","url":"git+https://github.com/kendru/ds-test.git"},"keywords":["templates","parsing"],"author":{"name":"Andrew Meredith","email":"ameredith@quantummetric.com"},"license":"MIT","bugs":{"url":"https://github.com/kendru/ds-test/issues"},"homepage":"https://github.com/kendru/ds-test#readme","devDependencies":{"babel-cli":"^6.26.0","babel-preset-es2015":"^6.24.1","babel-register":"^6.26.0","chai":"^4.1.2","mocha":"^4.0.1","nyc":"^11.3.0"},"gitHead":"3ce09bc2270f84f2e123fad6fd0ed886596d7826","_id":"ds-tpl@1.0.0","_shasum":"1148e884ec7059d8f5a9615c9ef618900618d75d","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.10.0","_npmUser":{"name":"kendru","email":"andymeredith@gmail.com"},"dist":{"shasum":"1148e884ec7059d8f5a9615c9ef618900618d75d","tarball":"https://registry.npmjs.org/ds-tpl/-/ds-tpl-1.0.0.tgz","integrity":"sha512-wVcwAVIWR2GjNszwHyzYDj+I/DI65rZnEnkiNTfvRFQ3jH0NmMH6Bf3fbeBD1bep90gmo3HDgvQ15cgZ2TTYiQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIQCbadQLmRFEVqbkymuDHPeP/z9cvKLTL3SjlKlXuMEkrgIffbubRmJdw1CO0r1ZGIuJamJHcmRWUSK6cDPmipxlrQ=="}]},"maintainers":[{"name":"kendru","email":"andymeredith@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ds-tpl-1.0.0.tgz_1510160064227_0.989067317917943"},"directories":{}},"1.0.1":{"name":"ds-tpl","version":"1.0.1","description":"Dead-simple, fast text templates","main":"lib/index.js","scripts":{"build":"babel src --out-dir lib","test":"mocha --compilers js:babel-register --recursive test","test:watch":"mocha --compilers js:babel-register --recursive -w \"test/**/*.test.js\" test","prepublish":"npm run build && npm test"},"publishConfig":{"registry":"https://registry.npmjs.org/"},"repository":{"type":"git","url":"git+https://github.com/kendru/ds-test.git"},"keywords":["templates","parsing"],"author":{"name":"Andrew Meredith","email":"ameredith@quantummetric.com"},"license":"MIT","bugs":{"url":"https://github.com/kendru/ds-test/issues"},"homepage":"https://github.com/kendru/ds-test#readme","devDependencies":{"babel-cli":"^6.26.0","babel-preset-es2015":"^6.24.1","babel-register":"^6.26.0","chai":"^4.1.2","mocha":"^4.0.1","nyc":"^11.3.0"},"gitHead":"12befb49efb38b554e7e775503ab77cdf52d6381","_id":"ds-tpl@1.0.1","_shasum":"5449dd68c1c1b6ab1a11f0a6be152f4e8d971be2","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.10.0","_npmUser":{"name":"kendru","email":"andymeredith@gmail.com"},"dist":{"shasum":"5449dd68c1c1b6ab1a11f0a6be152f4e8d971be2","tarball":"https://registry.npmjs.org/ds-tpl/-/ds-tpl-1.0.1.tgz","integrity":"sha512-os01oQQtn0x/LtTqUOSLxWdCTnPhLFobWUueU+f+cKHZC54zMTWGmeD9OfcbaOTI7bkxG0fa9teR5nX/NLQAAg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA5Pu91mCgJTy/DNW71bDhaS29+DMtoAxQKt4foxqHroAiEAxgMUpfg2/x3FnpClR45ZwSKanTL1A/fro4nVMnNv+rI="}]},"maintainers":[{"name":"kendru","email":"andymeredith@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ds-tpl-1.0.1.tgz_1510160354307_0.5875232883263379"},"directories":{}},"1.1.0":{"name":"ds-tpl","version":"1.1.0","description":"Dead-simple, fast text templates","main":"lib/index.js","scripts":{"build":"babel src --out-dir lib","test":"mocha --compilers js:babel-register --recursive test","test:watch":"mocha --compilers js:babel-register --recursive -w \"test/**/*.test.js\" test","prepublish":"npm run build && npm test"},"publishConfig":{"registry":"https://registry.npmjs.org/"},"repository":{"type":"git","url":"git+https://github.com/kendru/ds-test.git"},"keywords":["templates","parsing"],"author":{"name":"Andrew Meredith","email":"ameredith@quantummetric.com"},"license":"MIT","bugs":{"url":"https://github.com/kendru/ds-test/issues"},"homepage":"https://github.com/kendru/ds-test#readme","devDependencies":{"babel-cli":"^6.26.0","babel-preset-es2015":"^6.24.1","babel-register":"^6.26.0","chai":"^4.1.2","mocha":"^4.0.1","nyc":"^11.3.0"},"gitHead":"cef0faafefa7c1ac8e7812875343f390bd787a2e","_id":"ds-tpl@1.1.0","_shasum":"de0abc600f418aa246b2e2f33cd0038f651793ea","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.10.0","_npmUser":{"name":"kendru","email":"andymeredith@gmail.com"},"dist":{"shasum":"de0abc600f418aa246b2e2f33cd0038f651793ea","tarball":"https://registry.npmjs.org/ds-tpl/-/ds-tpl-1.1.0.tgz","integrity":"sha512-Z3Vh2ZfUT4BwpcX16vVRkanV12cewe9Riv7CEnsGigWRri6p4ZObh9rncBijAst4837guZxO5BU9ha17Z9zC6g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG1hIwU8So9UFuunIXI4s0y4dB2rOwK7U2cRLNuY05PVAiB03TroQuZ4m79lM4rrluGPK3wzM146toUrE1z9hQTvlQ=="}]},"maintainers":[{"name":"kendru","email":"andymeredith@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ds-tpl-1.1.0.tgz_1510165959764_0.24498773622326553"},"directories":{}},"1.2.0":{"name":"ds-tpl","version":"1.2.0","description":"Dead-simple, fast text templates","main":"lib/index.js","scripts":{"build":"babel src --out-dir lib","test":"mocha --compilers js:babel-register --recursive test","test:watch":"mocha --compilers js:babel-register --recursive -w \"test/**/*.test.js\" test","prepublish":"npm run build && npm test"},"publishConfig":{"registry":"https://registry.npmjs.org/"},"repository":{"type":"git","url":"git+https://github.com/kendru/ds-test.git"},"keywords":["templates","parsing"],"author":{"name":"Andrew Meredith","email":"ameredith@quantummetric.com"},"license":"MIT","bugs":{"url":"https://github.com/kendru/ds-test/issues"},"homepage":"https://github.com/kendru/ds-test#readme","devDependencies":{"babel-cli":"^6.26.0","babel-preset-es2015":"^6.24.1","babel-register":"^6.26.0","chai":"^4.1.2","mocha":"^4.0.1","nyc":"^11.3.0"},"gitHead":"ffd5e51c095c678c773d8fd71a2117c29ce52c0d","_id":"ds-tpl@1.2.0","_shasum":"e583c95babcddd658ef0121718a73402359924a1","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.10.0","_npmUser":{"name":"kendru","email":"andymeredith@gmail.com"},"dist":{"shasum":"e583c95babcddd658ef0121718a73402359924a1","tarball":"https://registry.npmjs.org/ds-tpl/-/ds-tpl-1.2.0.tgz","integrity":"sha512-dWYnjIG75oSv0Ea+MOeS/BUxE2whQk2NDBrKHMePOe1SBLbouCiotRsN+H3NO3VgBEN53cGevkH9uXKtjQA2hg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC0yKu1sgVbwSj05gopV4NopQUSp1afAiYXHl3QPr0egAIgXqxtHN7v455FNm1PreDWS5HKEXI6ULg6xOMm4gEKQPQ="}]},"maintainers":[{"name":"kendru","email":"andymeredith@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ds-tpl-1.2.0.tgz_1515969185454_0.6753382764291018"},"directories":{}},"1.3.0":{"name":"ds-tpl","version":"1.3.0","description":"Dead-simple, fast text templates","main":"lib/index.js","scripts":{"build":"babel src --out-dir lib","test":"mocha --compilers js:babel-register --recursive test","test:watch":"mocha --compilers js:babel-register --recursive -w \"test/**/*.test.js\" test","prepublish":"npm run build && npm test"},"publishConfig":{"registry":"https://registry.npmjs.org/"},"repository":{"type":"git","url":"git+https://github.com/kendru/ds-test.git"},"keywords":["templates","parsing"],"author":{"name":"Andrew Meredith","email":"ameredith@quantummetric.com"},"license":"MIT","bugs":{"url":"https://github.com/kendru/ds-test/issues"},"homepage":"https://github.com/kendru/ds-test#readme","devDependencies":{"babel-cli":"^6.26.0","babel-preset-es2015":"^6.24.1","babel-register":"^6.26.0","chai":"^4.1.2","mocha":"^4.0.1","nyc":"^11.3.0"},"gitHead":"753e749de26448a76d5e58bc92504a924516d6fa","_id":"ds-tpl@1.3.0","_npmVersion":"5.6.0","_nodeVersion":"9.4.0","_npmUser":{"name":"kendru","email":"andymeredith@gmail.com"},"dist":{"integrity":"sha512-RpvkRcTPtiwohKfn1iXR/wOLf8QKS3BL+f0KME57FaAeqBohauXc1zqPragM38Sodoo3IrhayB8+zDKjD1KsQQ==","shasum":"91efddf0fbf6b0d2e9929788c14858b271088aa6","tarball":"https://registry.npmjs.org/ds-tpl/-/ds-tpl-1.3.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEHR6b6yjhK9vHt1N5MJZTudOXWHO3wJXr3jgcOEDxuFAiEAxKWADMGQgHHkp2/ANGS3VqMPdeAlvSoA8Sb48Uy7JPM="}]},"maintainers":[{"name":"kendru","email":"andymeredith@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ds-tpl-1.3.0.tgz_1517941520122_0.24287670338526368"},"directories":{}},"1.4.0":{"name":"ds-tpl","version":"1.4.0","description":"Dead-simple, fast text templates","main":"lib/index.js","scripts":{"build":"babel src --out-dir lib","test":"mocha --compilers js:babel-register --recursive test","test:watch":"mocha --compilers js:babel-register --recursive -w \"test/**/*.test.js\" test","prepublish":"npm run build && npm test"},"publishConfig":{"registry":"https://registry.npmjs.org/"},"repository":{"type":"git","url":"git+https://github.com/kendru/ds-test.git"},"keywords":["templates","parsing"],"author":{"name":"Andrew Meredith","email":"ameredith@quantummetric.com"},"license":"MIT","bugs":{"url":"https://github.com/kendru/ds-test/issues"},"homepage":"https://github.com/kendru/ds-test#readme","devDependencies":{"babel-cli":"^6.26.0","babel-preset-es2015":"^6.24.1","babel-register":"^6.26.0","chai":"^4.1.2","mocha":"^4.0.1","nyc":"^11.3.0"},"gitHead":"892eb6d5bd47b5bcc04d1daf2b05076229872a47","_id":"ds-tpl@1.4.0","_npmVersion":"5.6.0","_nodeVersion":"9.4.0","_npmUser":{"name":"kendru","email":"andymeredith@gmail.com"},"dist":{"integrity":"sha512-YV1hOmsIESev9G90Yt/atylCm16QMwwQXZUkbKb75RV+txsBUHxzJdMrxEQFe9CEhlEpxiLgo8KTpiZON43buQ==","shasum":"7b343de18cceee867e3909d3ef1b59f981a40743","tarball":"https://registry.npmjs.org/ds-tpl/-/ds-tpl-1.4.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDNgoMlLm7djPdm+y3Ip/ei2WzGRbTV50K7gPqSf8V1wAiEA1nAsker3oU+36VTQIHkcSqGTBvLJB02U0/djmym77Ac="}]},"maintainers":[{"name":"kendru","email":"andymeredith@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ds-tpl-1.4.0.tgz_1517950734611_0.9293662877753377"},"directories":{}},"1.4.1":{"name":"ds-tpl","version":"1.4.1","description":"Dead-simple, fast text templates","main":"lib/index.js","scripts":{"build":"babel src --out-dir lib","test":"mocha --compilers js:babel-register --recursive test","test:watch":"mocha --compilers js:babel-register --recursive -w \"test/**/*.test.js\" test","prepublish":"npm run build && npm test"},"publishConfig":{"registry":"https://registry.npmjs.org/"},"repository":{"type":"git","url":"git+https://github.com/kendru/ds-test.git"},"keywords":["templates","parsing"],"author":{"name":"Andrew Meredith","email":"ameredith@quantummetric.com"},"license":"MIT","bugs":{"url":"https://github.com/kendru/ds-test/issues"},"homepage":"https://github.com/kendru/ds-test#readme","devDependencies":{"babel-cli":"^6.26.0","babel-preset-es2015":"^6.24.1","babel-register":"^6.26.0","chai":"^4.1.2","mocha":"^4.0.1","nyc":"^11.3.0"},"gitHead":"9e7ec3d77358ea1898f7a970b947eeec7d285488","_id":"ds-tpl@1.4.1","_npmVersion":"5.6.0","_nodeVersion":"9.4.0","_npmUser":{"name":"kendru","email":"andymeredith@gmail.com"},"dist":{"integrity":"sha512-W9Ug1r5bU+3oN2NsqmY2LjAx3rnzglxsR/wWRVSB4w7j10zibUrijgsxw61xJOwZnZLDm5xVUJ6j5ZaucvvrLg==","shasum":"5ff65b0b24f5f508fdcfc9f5d15d09d35ce5ff11","tarball":"https://registry.npmjs.org/ds-tpl/-/ds-tpl-1.4.1.tgz","fileCount":16,"unpackedSize":153010,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDLc3QQOpLver+D9DDmStlTE57hJT1BF7ojYOoBtKwPrgIhAOOerfgSCc0LV+ZESZiWlTJgS6oBzBZ7WhHEEAdWWSoa"}]},"maintainers":[{"name":"kendru","email":"andymeredith@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ds-tpl_1.4.1_1518016281181_0.12365298850686934"},"_hasShrinkwrap":false},"1.4.2":{"name":"ds-tpl","version":"1.4.2","description":"Dead-simple, fast text templates","main":"lib/index.js","scripts":{"build":"babel src --out-dir lib","test":"mocha --compilers js:babel-register --recursive test","test:watch":"mocha --compilers js:babel-register --recursive -w \"test/**/*.test.js\" test","prepublish":"npm run build && npm test"},"publishConfig":{"registry":"https://registry.npmjs.org/"},"repository":{"type":"git","url":"git+https://github.com/kendru/ds-test.git"},"keywords":["templates","parsing"],"author":{"name":"Andrew Meredith","email":"ameredith@quantummetric.com"},"license":"MIT","bugs":{"url":"https://github.com/kendru/ds-test/issues"},"homepage":"https://github.com/kendru/ds-test#readme","devDependencies":{"babel-cli":"^6.26.0","babel-preset-es2015":"^6.24.1","babel-register":"^6.26.0","chai":"^4.1.2","mocha":"^4.0.1","nyc":"^11.3.0"},"gitHead":"00236470bace8f517b1856e1ec2a4160bc7d3b8a","_id":"ds-tpl@1.4.2","_npmVersion":"5.6.0","_nodeVersion":"9.7.1","_npmUser":{"name":"kendru","email":"andymeredith@gmail.com"},"dist":{"integrity":"sha512-hHDa41dOUHnUicCu1pUZNBYJyc9wbRXCUp1r/it2wT5Yv+du47a+ilx4hIICNtnIwNKEpgKeTbM6sD3MTdQuew==","shasum":"ca55bc5838df23f6559f632122b95f6d460911fe","tarball":"https://registry.npmjs.org/ds-tpl/-/ds-tpl-1.4.2.tgz","fileCount":10,"unpackedSize":130327,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbPndMCRA9TVsSAnZWagAAdbYP/1lNSyhAstAe9uuUAE7X\nEi96vmiDRreBf/1YLzVqwzDIX+rCnuRcQ1VXa415o04foPP7yod5xYeeWu1S\nk7Ujioyo8sbdzZpr6CoHCKioC3oPJHl3vAIV4FA+1JMynJtotUYjNxJZfuIO\ndnYg/iBT3Grai2cTLxvR7peNNSrzpP1bdEz/SRQpF50CrHNklOxMC+HCyTzG\n3bTh3sUG35+6bC5pyu0tcS1u3M/3QzFQ9xKaASfG/ho6BvE2OrYRaiCnBfTW\n4qJwFIgwRgazv27+ALY2Ta+bWWPVDWOSCjlMVy4xkDDsYy1sr4hupVqI2/Ex\n0NRVq9Qe78pLqw3giY++ilCkPVA93ksIDt+fm2gaqm3NzTz6H9pdrqFWpF0K\nSURjn+bQCoSOMZqgT47oNEC50ZHf6+fN/AgdkM6n5kTp37fNMAd8criErUIW\no19WX3SC03f2PNA3SPsAHRzdY614ZO9wtN5t8ocdYCETsjkx23/mr6JQNMyF\nSeL0l2QWCwMLKdL/l6uO52B54qzNebYnUDkgkPR+mwnq+8tuH+xwviYNwvNN\nDessD/793XIzLIWT5Wv60LFXlyk6FdXQMr+F/vQRFdqczYmPGkT3BHgNiZcf\nEXiS28VBxhI4QEdPY26XtUPSVtlf8nGikHLkwy1MPqkDlM+lewqPd6mHrMQy\nKtss\r\n=heY3\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCdwOu3BMZnpPkA1Lytdeb9YWfB4fMb6uDPXThQorezNAIhAOTKGnpWK8jUotfPptCXKYhwj3PbU8LQQ24aA4Duw7L6"}]},"maintainers":[{"name":"kendru","email":"andymeredith@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ds-tpl_1.4.2_1530820428021_0.002318840142246037"},"_hasShrinkwrap":false}},"readme":"# ds-tpl\n\nDead-simple, fast text templates.\n\nMustache-style templates that perform only interpolation, iteration, and conditionals\nwith simple boolean expressions.\nNo heavy logic, no filtering, no extra features.\n\nIs it fast? Yes.\n\n### Usage\n\n```javascript\nconst compileTemplate = require('ds-tpl');\n\n// Example 1: Simple interpolation\nconst tpl = compileTemplate('Hello, {{world}}');\nconst data = { world: 'Earth' };\n\nconsole.log(tpl(data)); // Logs: \"Hello, Earth\"\n\n// Example 2: Iteration and property access\nconst tpl = compileTemplate(\n`The first planet's name is: {{planets.0.name}}. All of them are:{% for planets as planet %}\n    - {{planet.name}}{% end %}`\n);\nconst planets = [\n    { name: 'Mercury' },\n    { name: 'Venus' },\n    { name: 'Earth' },\n    { name: 'Mars' },\n    { name: 'Jupiter' },\n    { name: 'Saturn' },\n    { name: 'Uranus' },\n    { name: 'Neptune' }\n];\n\nconsole.log(tpl({ planets }));\n/* Logs:\n * The first planet's name is: Mercury. All of them are:\n *  - Mercury\n *  - Venus\n *  - Earth\n *  - Mars\n *  - Jupiter\n *  - Saturn\n *  - Uranus\n *  - Neptune\n */\n\nconst tpl = compileTemplate('This is {% if name == \"Bob\" || name == \"Robert\" %}Bob{% else %}not Bob{% end %}')\nconsole.log(tpl({ name: 'Robert' })); // Logs: \"This is Bob\"\nconsole.log(tpl({ name: 'Roberta' })); // Logs: \"This is not Bob\"\n```\n","maintainers":[{"name":"kendru","email":"andymeredith@gmail.com"}],"time":{"modified":"2022-06-16T00:49:53.283Z","created":"2017-11-08T16:54:24.400Z","1.0.0":"2017-11-08T16:54:24.400Z","1.0.1":"2017-11-08T16:59:15.328Z","1.1.0":"2017-11-08T18:32:40.764Z","1.2.0":"2018-01-14T22:33:06.443Z","1.3.0":"2018-02-06T18:25:21.064Z","1.4.0":"2018-02-06T20:58:55.532Z","1.4.1":"2018-02-07T15:11:21.947Z","1.4.2":"2018-07-05T19:53:48.107Z"},"homepage":"https://github.com/kendru/ds-test#readme","keywords":["templates","parsing"],"repository":{"type":"git","url":"git+https://github.com/kendru/ds-test.git"},"author":{"name":"Andrew Meredith","email":"ameredith@quantummetric.com"},"bugs":{"url":"https://github.com/kendru/ds-test/issues"},"license":"MIT","readmeFilename":"README.md"}