{"_id":"supplant","_rev":"32-70537ce3a0dd6925307b03ebf8842acf","name":"supplant","description":"String variable substitution","dist-tags":{"latest":"0.2.0"},"versions":{"0.0.1":{"name":"supplant","version":"0.0.1","description":"String variable substitution","main":"index.js","dependencies":{"trim":"0.0.1","indexof":"0.0.1","props-component":"~1.0.3"},"devDependencies":{"zuul":"~1.3.0","mocha":"~1.12.0"},"browser":{"props":"props-component"},"scripts":{"test":"zuul -- test/supplant.js","test-local":"zuul --local -- test/supplant.js"},"repository":{"type":"git","url":"git://github.com/bredele/supplant.git"},"keywords":["string","substitution","remedial","interpolation","template"],"author":{"name":"Olivier Wietrich"},"license":"MIT","gitHead":"ac5236caa3f6347ac2c6fc4ee0db254ef782e3a9","bugs":{"url":"https://github.com/bredele/supplant/issues"},"_id":"supplant@0.0.1","dist":{"shasum":"77286b7179edd5c1ee7f791dcb132c44d1fb164b","tarball":"https://registry.npmjs.org/supplant/-/supplant-0.0.1.tgz","integrity":"sha512-C/8eEmb1zNxuceSV0q6YK6BdAkafUSOFrhfIOzbDIxf0eGxCLXQxksBVkPgGU7n8zsp1efbGDnO4b4tl7pHClA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDkEuEQzip0Af6gfaQotlyWd8x6TpcwrtXfvhRnVewFXAiEAvhEsjQScF2qc3eGjY0CbGlizGWq9jfCUODdRZMH3My8="}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"bredele","email":"olivier.wietrich@gmail.com"},"maintainers":[{"name":"bredele","email":"olivier.wietrich@gmail.com"}]},"0.0.2":{"name":"supplant","version":"0.0.2","description":"String variable substitution","main":"index.js","dependencies":{"trim":"0.0.1","indexof":"0.0.1"},"devDependencies":{"zuul":"~1.3.0","mocha":"~1.12.0"},"scripts":{"test":"zuul -- test/supplant.js","test-local":"zuul --local -- test/supplant.js"},"repository":{"type":"git","url":"git://github.com/bredele/supplant.git"},"keywords":["string","substitution","remedial","interpolation","template"],"author":{"name":"Olivier Wietrich"},"license":"MIT","gitHead":"ac5236caa3f6347ac2c6fc4ee0db254ef782e3a9","bugs":{"url":"https://github.com/bredele/supplant/issues"},"_id":"supplant@0.0.2","dist":{"shasum":"2a1f5a4a970ef89eb727cf1f277fea49ad3d65df","tarball":"https://registry.npmjs.org/supplant/-/supplant-0.0.2.tgz","integrity":"sha512-pbsk0OkBFoiRxyJt4z1f9BJVUUqD2n+BqX0Jf1n5FEmhqTRb25ziBs8bdte3h+Aco+jC8PewmYxAIhJGcAe2zg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDDWZSoZZMh2iix3gsPt5bF7Y28Go13O2x1GJVgn5CUzgIhAJ3JCCv2vD4Ef2i5KAH/dnBXkIB2Qem5dLAF3+W/Kekr"}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"bredele","email":"olivier.wietrich@gmail.com"},"maintainers":[{"name":"bredele","email":"olivier.wietrich@gmail.com"}]},"0.0.3":{"name":"supplant","version":"0.0.3","description":"String variable substitution","main":"index.js","dependencies":{"trim":"0.0.1","indexof":"0.0.1"},"devDependencies":{"zuul":"~1.3.0","mocha":"~1.12.0"},"scripts":{"test":"zuul -- test/supplant.js","test-local":"zuul --local -- test/supplant.js"},"repository":{"type":"git","url":"git://github.com/bredele/supplant.git"},"keywords":["string","substitution","remedial","interpolation","template"],"author":{"name":"Olivier Wietrich"},"license":"MIT","gitHead":"ac5236caa3f6347ac2c6fc4ee0db254ef782e3a9","bugs":{"url":"https://github.com/bredele/supplant/issues"},"_id":"supplant@0.0.3","dist":{"shasum":"fa2dd7b4d795cfb8b20ad34b93290ed85835b266","tarball":"https://registry.npmjs.org/supplant/-/supplant-0.0.3.tgz","integrity":"sha512-4NFp3R9uTnSBIHCzwZSebEEBQqPRZh7dfUC8U0ujd9YGIlp1ttM5susN6ORb3M7BrRMornM42AF93taMdnryvg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCsUlt/nX904i49Jm8zayhf1YKi8cKU4hLWA9BgjkoBMwIgVsg3rtchGtHAYvsWknzJW2W9Xpg0HnGWVlE0vHkVeDs="}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"bredele","email":"olivier.wietrich@gmail.com"},"maintainers":[{"name":"bredele","email":"olivier.wietrich@gmail.com"}]},"0.0.4":{"name":"supplant","version":"0.0.4","description":"String variable substitution","main":"index.js","dependencies":{"trim":"0.0.1","indexof":"0.0.1"},"devDependencies":{"zuul":"~1.3.0","mocha":"~1.12.0"},"scripts":{"test":"zuul -- test/supplant.js","test-local":"zuul --local -- test/supplant.js"},"repository":{"type":"git","url":"git://github.com/bredele/supplant.git"},"keywords":["string","substitution","remedial","interpolation","template"],"author":{"name":"Olivier Wietrich"},"license":"MIT","gitHead":"ac5236caa3f6347ac2c6fc4ee0db254ef782e3a9","bugs":{"url":"https://github.com/bredele/supplant/issues"},"_id":"supplant@0.0.4","dist":{"shasum":"461a34defad0a6aff4aa124721c34eae016c4a05","tarball":"https://registry.npmjs.org/supplant/-/supplant-0.0.4.tgz","integrity":"sha512-N6MmHTB8jnpnwE+Qs4PzTBWbUMKkJKedl9skz8tNQeBCt2TfyuNS2ZfMcjvvYz+Sb3QJHPtFw/xl2Grt0Oay3g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGztTAgSCVW3VX7EIfI2RL6tmkiUGhXzYWgkkCcitlYbAiEA/nhF5TmyzImm3iQYBocc9OYBRHJVsaryY7iqhlWhZeA="}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"bredele","email":"olivier.wietrich@gmail.com"},"maintainers":[{"name":"bredele","email":"olivier.wietrich@gmail.com"}]},"0.1.0":{"name":"supplant","version":"0.1.0","description":"String variable substitution","main":"index.js","dependencies":{"trim":"0.0.1","indexof":"0.0.1"},"devDependencies":{"zuul":"~1.3.0","mocha":"~1.12.0"},"scripts":{"test":"zuul -- test/supplant.js","test-local":"zuul --local -- test/supplant.js"},"repository":{"type":"git","url":"git://github.com/bredele/supplant.git"},"keywords":["string","substitution","remedial","interpolation","template"],"author":{"name":"Olivier Wietrich"},"license":"MIT","gitHead":"ac5236caa3f6347ac2c6fc4ee0db254ef782e3a9","bugs":{"url":"https://github.com/bredele/supplant/issues"},"_id":"supplant@0.1.0","dist":{"shasum":"71ddb5ba7b87b84692b93e3444915462e3ca9015","tarball":"https://registry.npmjs.org/supplant/-/supplant-0.1.0.tgz","integrity":"sha512-wPbC5r8gpiVy4OgItyu6Hopzu/1Y4YuFAzMflBEqKFrxKVazB9ZgObUKidwKqDxGPgW9m1FRS7bkmblDWOBYJg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCDNuwkGJHxlMyGnQR22b+Jh2f+pE3EctRnke+FwUBvdgIgDhS5JAmQeFHDPRYgmNYfoL0A1SAldA63wuSGvo3kYXk="}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"bredele","email":"olivier.wietrich@gmail.com"},"maintainers":[{"name":"bredele","email":"olivier.wietrich@gmail.com"}]},"0.1.1":{"name":"supplant","version":"0.1.1","description":"String variable substitution","main":"index.js","dependencies":{"trim":"0.0.1","indexof":"0.0.1"},"devDependencies":{"zuul":"~1.3.0","mocha":"~1.12.0"},"scripts":{"test":"zuul -- test/supplant.js","test-local":"zuul --local -- test/supplant.js"},"repository":{"type":"git","url":"git://github.com/bredele/supplant.git"},"keywords":["string","substitution","remedial","interpolation","template"],"author":{"name":"Olivier Wietrich"},"license":"MIT","gitHead":"ac5236caa3f6347ac2c6fc4ee0db254ef782e3a9","bugs":{"url":"https://github.com/bredele/supplant/issues"},"_id":"supplant@0.1.1","dist":{"shasum":"c4dfeb6a20281ad0d29044dac17fc3e6a87aec17","tarball":"https://registry.npmjs.org/supplant/-/supplant-0.1.1.tgz","integrity":"sha512-GvkJadLg5YFtio3oZeinMn2XQdLhC7879gLC+7jJ4xc320EJUjS2B5cPG6P5xDbjSJ+1XPd793qzXkuHy1uRsg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID4ULe5kLnKl7PCiVaA58Iwwlf8HhW6rqX5ZDqK750IAAiEAxjvhepfDLTDulHHJ2T2+ArYuo11febvZJgsCPbzpMds="}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"bredele","email":"olivier.wietrich@gmail.com"},"maintainers":[{"name":"bredele","email":"olivier.wietrich@gmail.com"}]},"0.1.2":{"name":"supplant","version":"0.1.2","description":"String variable substitution","main":"index.js","dependencies":{"trim":"0.0.1","indexof":"0.0.1"},"devDependencies":{"zuul":"~1.3.0","mocha":"~1.12.0"},"scripts":{"test":"zuul -- test/supplant.js","test-local":"zuul --local -- test/supplant.js"},"repository":{"type":"git","url":"git://github.com/bredele/supplant.git"},"keywords":["string","substitution","remedial","interpolation","template"],"author":{"name":"Olivier Wietrich"},"license":"MIT","gitHead":"ac5236caa3f6347ac2c6fc4ee0db254ef782e3a9","bugs":{"url":"https://github.com/bredele/supplant/issues"},"_id":"supplant@0.1.2","dist":{"shasum":"73940357221412aeab115716f44f73805467925d","tarball":"https://registry.npmjs.org/supplant/-/supplant-0.1.2.tgz","integrity":"sha512-UOA58xGHR9uDy8065jg24ug7A6jLq00ysOZRvc41omx8RzKhM2yHLJnI8cDC//3NSkS8N07DGW/FDwJzAjSzXA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC4IFP9MZNaOZ/qBGiuja2qxqXLqAppQJDAfeSa0rTSyQIhAK102mTntIV2OGWMCQaT9QVkzGpmerw18iqbbKN6X93J"}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"bredele","email":"olivier.wietrich@gmail.com"},"maintainers":[{"name":"bredele","email":"olivier.wietrich@gmail.com"}]},"0.2.0":{"name":"supplant","version":"0.2.0","description":"String variable substitution","main":"index.js","dependencies":{"trim":"0.0.1","indexof":"0.0.1"},"devDependencies":{"zuul":"~1.3.0","mocha":"~1.12.0"},"scripts":{"mocha":"mocha --reporter nyan","test":"zuul -- test/supplant.js","test-local":"zuul --local -- test/supplant.js"},"repository":{"type":"git","url":"git://github.com/bredele/supplant.git"},"keywords":["string","substitution","remedial","interpolation","template"],"author":{"name":"Olivier Wietrich"},"license":"MIT","gitHead":"ac5236caa3f6347ac2c6fc4ee0db254ef782e3a9","bugs":{"url":"https://github.com/bredele/supplant/issues"},"homepage":"https://github.com/bredele/supplant","_id":"supplant@0.2.0","dist":{"shasum":"6b8faa5326821ad95f914ac86481d7c3d63d9014","tarball":"https://registry.npmjs.org/supplant/-/supplant-0.2.0.tgz","integrity":"sha512-KzF6PUMjoSUJVlUTbAEBdXAXw+hRPlrw9wDsmUBtYq55Zs8ET1wmgd7H0MfCUUyCpmMGmPeWWJVc3CakgK+sVA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIE/RTifhf6qF2pbu6lvQILtiCA8IC3WGUf9m9qvx/7uVAiEA7VuJK38e6QH1DsJ+x8HTQN0oJUVy7v/EMzsDk05T+FM="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"bredele","email":"olivier.wietrich@gmail.com"},"maintainers":[{"name":"bredele","email":"olivier.wietrich@gmail.com"}]}},"readme":"Supplant\n=============\n[![Build Status](https://travis-ci.org/bredele/supplant.png?branch=master)](https://travis-ci.org/bredele/supplant)\n\n  > Variable substitution on the string.\n\nIt scans through the string looking for expressions enclosed in {{ }} braces. If an expression is found, use it as a key on the object, and if the key has a string value or number value, it is substituted for the bracket expression and it repeats.\n\n## Installation\n\nwith component:\n\n    $ component install bredele/supplant\n\nwith nodejs:\n\n    $ npm install supplant\n\n## API\n\n```js\nvar Supplant = require('supplant');\nvar subs = new Supplant();\n```\n\n### supplant.text(str, obj)\n\n  return the interpolation of a string with an object.\n\n```js\nsubs.text('my name is {{ name }}', {\n  name : 'Olivier',\n});\n\n//my name is Olivier\n```\n\n\n### supplant.props(str)\n\n  return uniq identifiers\n\n```js\nsubs.props('hello {{ name }} and {{other}}'');\n//['name', 'other']\n```\n\n## Advanced\n\n### Expressions\n\n```js\nsubs.text('{{ company.toUpperCase() }}', {\n  company : 'github'\n});\n\n//GITHUB\n```\n  `supplant` supports grouping, binary operators, identifiers, comparators and ternary operators (see [test](https://github.com/bredele/supplant/blob/master/test/supplant.js)).\n\n### Filters\n\n```js\nsubs.filter('hello', function(str) {\n  return 'hello ' + str;\n});\nsubs.text('{{ company} | hello}', {\n  company : 'github'\n});\n\n//hello github \n```\n\n## License\n\n  MIT\n","maintainers":[{"name":"bredele","email":"olivier.wietrich@gmail.com"}],"time":{"modified":"2022-06-27T02:24:38.765Z","created":"2014-02-26T23:54:42.164Z","0.0.1":"2014-02-26T23:54:44.091Z","0.0.2":"2014-02-27T00:24:32.517Z","0.0.3":"2014-03-01T23:54:38.006Z","0.0.4":"2014-03-01T23:59:24.317Z","0.1.0":"2014-03-07T22:32:29.453Z","0.1.1":"2014-03-07T22:41:10.025Z","0.1.2":"2014-03-07T23:21:47.460Z","0.2.0":"2014-04-18T03:22:19.519Z"},"readmeFilename":"README.md","keywords":["string","substitution","remedial","interpolation","template"],"repository":{"type":"git","url":"git://github.com/bredele/supplant.git"},"author":{"name":"Olivier Wietrich"},"bugs":{"url":"https://github.com/bredele/supplant/issues"},"license":"MIT","users":{"bredele":true},"homepage":"https://github.com/bredele/supplant"}