{"_id":"breath","_rev":"25-55c36794a618849dcc7a708d2b0190b5","name":"breath","description":"builds a javascript variable from a template.","dist-tags":{"latest":"0.2.0"},"versions":{"0.0.1":{"author":{"name":"Yosuke Kumakura","email":"kumatch@gmail.com"},"name":"breath","description":"builds a javascript variable from a template.","version":"0.0.1","main":"./lib/breath.js","repository":{"type":"git","url":"https://github.com/kumatch/breath.git"},"github":"https://github.com/kumatch/breath","dependencies":{"lodash":"~1.3"},"devDependencies":{"chai":"*","mocha":"*","sinon":"*","grunt":"~0.4","grunt-mocha-test":"*"},"optionalDependencies":{},"engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt test"},"readme":"breath\n===========\n\nbuilds a javascript variable from a template.\n\nUsage (draft)\n-----\n\n```javascript\nvar breath = require('breath');\n\nvar template = {\n    say: {\n        hello: \"Hello <%= params.name %> (<%= params.birth %>)\"\n    },\n\n    params: {\n        name: \"javascript\",\n        birth: 1995\n    }\n};\n\nvar data = breath(template).toObject();\nconsole.log(data.say.hello); // \"Hello javascript (1995)\"\n\nvar data2 = breath(template).toObject({ params: { birth: \"by Netscape\" } });\nconsole.log(data2.say.hello); // \"Hello javascript (by Netscape)\"\n\nvar value = breath(template).get('say.hello', { params: { name: \"Node\", birth: 2009 } });\nconsole.log(value); // \"Hello Node (2009)\"\n```\n\n\n\nLicense\n--------\n\nLicensed under the MIT License.\n\nCopyright (c) 2013 Yosuke Kumakura\n\nPermission is hereby granted, free of charge, to any person\nobtaining a copy of this software and associated documentation\nfiles (the \"Software\"), to deal in the Software without\nrestriction, including without limitation the rights to use,\ncopy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the\nSoftware is furnished to do so, subject to the following\nconditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES\nOF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT\nHOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,\nWHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\nFROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR\nOTHER DEALINGS IN THE SOFTWARE.\n","readmeFilename":"readme.md","bugs":{"url":"https://github.com/kumatch/breath/issues"},"_id":"breath@0.0.1","dist":{"shasum":"c28908239f8457faa7a902fce5ada33b01f51323","tarball":"https://registry.npmjs.org/breath/-/breath-0.0.1.tgz","integrity":"sha512-4vnqX6HaVS/AFKXkUdUSeDpVSGSGMP0DkUuNbgFqG/g4xB4PNnqZw7wm3xqTeqLlCOfSrgEQRIZg6PbzW+KnVA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDnc1gkcaWtZ9fJtdqZbnFl1AtsM+hN4QN/0w0eqe6QbwIhAOnbm8xk+5ewy/lR3ZDuMH8HWkKUFP8arUSEOm2vfkFS"}]},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"kumatch","email":"kumatch@gmail.com"},"maintainers":[{"name":"kumatch","email":"kumatch@gmail.com"}],"directories":{}},"0.0.2":{"author":{"name":"Yosuke Kumakura","email":"kumatch@gmail.com"},"name":"breath","description":"builds a javascript variable from a template.","version":"0.0.2","main":"./lib/breath.js","repository":{"type":"git","url":"https://github.com/kumatch/breath.git"},"github":"https://github.com/kumatch/breath","dependencies":{"lodash":"~1.3"},"devDependencies":{"chai":"*","mocha":"*","sinon":"*","grunt":"~0.4","grunt-mocha-test":"*"},"optionalDependencies":{},"engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt test"},"readme":"breath\n===========\n\nbuilds a javascript variable from a template.\n\nUsage (draft)\n-----\n\n```javascript\nvar breath = require('breath');\n\nvar template = {\n    say: {\n        hello: \"Hello <%= params.name %> (<%= params.birth %>)\"\n    },\n\n    params: {\n        name: \"javascript\",\n        birth: 1995\n    }\n};\n\nvar data = breath(template).toObject();\nconsole.log(data.say.hello); // \"Hello javascript (1995)\"\n\nvar data2 = breath(template).toObject({ params: { birth: \"by Netscape\" } });\nconsole.log(data2.say.hello); // \"Hello javascript (by Netscape)\"\n\nvar value = breath(template).get('say.hello', { params: { name: \"Node\", birth: 2009 } });\nconsole.log(value); // \"Hello Node (2009)\"\n```\n\n\n\nLicense\n--------\n\nLicensed under the MIT License.\n\nCopyright (c) 2013 Yosuke Kumakura\n\nPermission is hereby granted, free of charge, to any person\nobtaining a copy of this software and associated documentation\nfiles (the \"Software\"), to deal in the Software without\nrestriction, including without limitation the rights to use,\ncopy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the\nSoftware is furnished to do so, subject to the following\nconditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES\nOF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT\nHOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,\nWHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\nFROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR\nOTHER DEALINGS IN THE SOFTWARE.\n","readmeFilename":"readme.md","bugs":{"url":"https://github.com/kumatch/breath/issues"},"_id":"breath@0.0.2","dist":{"shasum":"ab6faa0894e3f5379f818e87ea0b1a58f73890fb","tarball":"https://registry.npmjs.org/breath/-/breath-0.0.2.tgz","integrity":"sha512-WESSAJCITBXp1vL3ZEe+UTtu4FOZvhiiWJ1NaTZGysvmC7jISH9ji+ZPkpcUKf7g/mZ44eJB3kv4wAdS/l2v7g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGAKUqNsM5Z8LOu06GT3v5CWWSHRJUYeewre9Wyya+bWAiEA0tG+mUVVW2ybr/VYfak2Dwo167rAHS0hk1Cfq5IdyaE="}]},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"kumatch","email":"kumatch@gmail.com"},"maintainers":[{"name":"kumatch","email":"kumatch@gmail.com"}],"directories":{}},"0.1.0":{"author":{"name":"Yosuke Kumakura","email":"kumatch@gmail.com"},"name":"breath","description":"builds a javascript variable from a template.","version":"0.1.0","main":"./lib/breath.js","repository":{"type":"git","url":"https://github.com/kumatch/breath.git"},"github":"https://github.com/kumatch/breath","dependencies":{"lodash":"~1.3"},"devDependencies":{"chai":"*","mocha":"*","sinon":"*","grunt":"~0.4","grunt-mocha-test":"*"},"optionalDependencies":{},"engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt test"},"readme":"breath\n===========\n\nbuilds a javascript variable from a template.\n\nUsage (draft)\n-----\n\n```javascript\nvar breath = require('breath');\n\nvar template = {\n    say: {\n        hello: \"Hello <%= params.name %> (<%= params.birth %>)\"\n    },\n\n    params: {\n        name: \"javascript\",\n        birth: 1995\n    }\n};\n\nvar obj1 = breath(template).createSync();\nconsole.log(obj1.say.hello); // \"Hello javascript (1995)\"\n\nvar obj2 = breath(template).createSync({ params: { birth: \"by Netscape\" } });\nconsole.log(obj2.say.hello); // \"Hello javascript (by Netscape)\"\n\nvar value = breath(template).get('say.hello', { params: { name: \"Node\", birth: 2009 } });\nconsole.log(value); // \"Hello Node (2009)\"\n\n// async\nbreath(template).create(function (err, obj) {\n    //...\n});\n\nbreath(template).create({ params: { name: \"world\" }}, function (err, obj) {\n    //...\n});\n```\n\n\n\nLicense\n--------\n\nLicensed under the MIT License.\n\nCopyright (c) 2013 Yosuke Kumakura\n\nPermission is hereby granted, free of charge, to any person\nobtaining a copy of this software and associated documentation\nfiles (the \"Software\"), to deal in the Software without\nrestriction, including without limitation the rights to use,\ncopy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the\nSoftware is furnished to do so, subject to the following\nconditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES\nOF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT\nHOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,\nWHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\nFROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR\nOTHER DEALINGS IN THE SOFTWARE.\n","readmeFilename":"readme.md","bugs":{"url":"https://github.com/kumatch/breath/issues"},"_id":"breath@0.1.0","dist":{"shasum":"d4047f0406e07fad465e21c1fde2b244a83c32c5","tarball":"https://registry.npmjs.org/breath/-/breath-0.1.0.tgz","integrity":"sha512-H/DrGhBX2Ya9uHMHbRSBIg25m/xlYXZHr36ma8S9Di9p25U/fVyzoNAFMf37ymv0yPZFJei1vGPhkDuCByjilg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCmCbcDTAcfID2t/iqEVeDOVPHUEhsIokU/nKtfjefscAIgAL7p0+gvZcvtYir4yGrOe5cMCZ2YZOuQQf+1d/KPkww="}]},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"kumatch","email":"kumatch@gmail.com"},"maintainers":[{"name":"kumatch","email":"kumatch@gmail.com"}],"directories":{}},"0.1.1":{"author":{"name":"Yosuke Kumakura","email":"kumatch@gmail.com"},"name":"breath","description":"builds a javascript variable from a template.","version":"0.1.1","main":"./lib/breath.js","repository":{"type":"git","url":"https://github.com/kumatch/breath.git"},"github":"https://github.com/kumatch/breath","dependencies":{"lodash":"~1.3","async":"~0.2"},"devDependencies":{"chai":"*","mocha":"*","sinon":"*","grunt":"~0.4","grunt-mocha-test":"*"},"optionalDependencies":{},"engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt test"},"readme":"breath\n===========\n\nbuilds a javascript variable from a template.\n\nUsage\n-----\n\n```javascript\nvar breath = require('breath');\n\nvar template = {\n    say: {\n        hello: \"Hello <%= params.name %> (<%= params.birth %>)\"\n    },\n\n    params: {\n        name: \"javascript\",\n        birth: 1995\n    }\n};\n\nvar obj1 = breath(template).createSync();\nconsole.log(obj1.say.hello); // \"Hello javascript (1995)\"\n\nvar obj2 = breath(template).createSync({ params: { birth: \"by Netscape\" } });\nconsole.log(obj2.say.hello); // \"Hello javascript (by Netscape)\"\n\nvar value = breath(template).get('say.hello', { params: { name: \"Node\", birth: 2009 } });\nconsole.log(value); // \"Hello Node (2009)\"\n\n// async\nbreath(template).create(function (err, obj) {\n    //...\n});\n\nbreath(template).create({ params: { name: \"world\" }}, function (err, obj) {\n    //...\n});\n```\n\n\n\nLicense\n--------\n\nLicensed under the MIT License.\n\nCopyright (c) 2013 Yosuke Kumakura\n\nPermission is hereby granted, free of charge, to any person\nobtaining a copy of this software and associated documentation\nfiles (the \"Software\"), to deal in the Software without\nrestriction, including without limitation the rights to use,\ncopy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the\nSoftware is furnished to do so, subject to the following\nconditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES\nOF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT\nHOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,\nWHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\nFROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR\nOTHER DEALINGS IN THE SOFTWARE.\n","readmeFilename":"readme.md","bugs":{"url":"https://github.com/kumatch/breath/issues"},"_id":"breath@0.1.1","dist":{"shasum":"ccff855d46536db011dd811af4e242cdc91de24a","tarball":"https://registry.npmjs.org/breath/-/breath-0.1.1.tgz","integrity":"sha512-feqYa8Tse1d5lm4gM8xibC31qVzZgJFFdEQneTdCO6XxdCUJFdjKVTdy/OtI12HXVMlHN+n9EpQ84t9hBAMz0Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDLJpApqZoXipjiAS8hrRjPqo4bQyTUKpiPtaNwKVmk0AiBFyVvJJJMUiFv1pcJJfOl/oruK0cH52NN/Iyz+jeeG4A=="}]},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"kumatch","email":"kumatch@gmail.com"},"maintainers":[{"name":"kumatch","email":"kumatch@gmail.com"}],"directories":{}},"0.1.2":{"author":{"name":"Yosuke Kumakura","email":"kumatch@gmail.com"},"name":"breath","description":"builds a javascript variable from a template.","version":"0.1.2","main":"./lib/breath.js","repository":{"type":"git","url":"https://github.com/kumatch/breath.git"},"github":"https://github.com/kumatch/breath","dependencies":{"lodash":"~1.3","async":"~0.2"},"devDependencies":{"chai":"*","mocha":"*","sinon":"*","grunt":"~0.4","grunt-mocha-test":"*"},"optionalDependencies":{},"engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt test"},"readme":"breath\n===========\n\nbuilds a javascript variable from a template.\n\nUsage\n-----\n\n```javascript\nvar breath = require('breath');\n\nvar template = {\n    say: {\n        hello: \"Hello <%= params.name %> (<%= params.birth %>)\"\n    },\n\n    params: {\n        name: \"javascript\",\n        birth: 1995\n    }\n};\n\nvar obj1 = breath(template).createSync();\nconsole.log(obj1.say.hello); // \"Hello javascript (1995)\"\n\nvar obj2 = breath(template).createSync({ params: { birth: \"by Netscape\" } });\nconsole.log(obj2.say.hello); // \"Hello javascript (by Netscape)\"\n\nvar value = breath(template).get('say.hello', { params: { name: \"Node\", birth: 2009 } });\nconsole.log(value); // \"Hello Node (2009)\"\n\n// async\nbreath(template).create(function (err, obj) {\n    //...\n});\n\nbreath(template).create({ params: { name: \"world\" }}, function (err, obj) {\n    //...\n});\n```\n\n\n\nLicense\n--------\n\nLicensed under the MIT License.\n\nCopyright (c) 2013 Yosuke Kumakura\n\nPermission is hereby granted, free of charge, to any person\nobtaining a copy of this software and associated documentation\nfiles (the \"Software\"), to deal in the Software without\nrestriction, including without limitation the rights to use,\ncopy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the\nSoftware is furnished to do so, subject to the following\nconditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES\nOF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT\nHOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,\nWHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\nFROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR\nOTHER DEALINGS IN THE SOFTWARE.\n","readmeFilename":"readme.md","bugs":{"url":"https://github.com/kumatch/breath/issues"},"_id":"breath@0.1.2","dist":{"shasum":"3a6245532a7833f0ad218fa9d47103657d06f65a","tarball":"https://registry.npmjs.org/breath/-/breath-0.1.2.tgz","integrity":"sha512-Sm5WumFcHnhLZyoRamPlShRF+BO/yM8tFh9XNS7BSWZCPhHjpQHiJ0qN3hbBR6txIo6l3hXBydQMPBskpIN8QA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCdmh99j5plUZsxiYGI82wUVqv7l+uK2NclT7LoEqInBAIhAP6m0kkZ18EnbWzTckaUZjHmHbkRt/l116AGuwXuD2Ec"}]},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"kumatch","email":"kumatch@gmail.com"},"maintainers":[{"name":"kumatch","email":"kumatch@gmail.com"}]},"0.1.3":{"author":{"name":"Yosuke Kumakura","email":"kumatch@gmail.com"},"name":"breath","description":"builds a javascript variable from a template.","version":"0.1.3","main":"./lib/breath.js","repository":{"type":"git","url":"https://github.com/kumatch/breath.git"},"github":"https://github.com/kumatch/breath","dependencies":{"lodash":"~1.3","async":"~0.2","nestraight":"0.1"},"devDependencies":{"chai":"*","mocha":"*","sinon":"*","grunt":"~0.4","grunt-mocha-test":"*"},"optionalDependencies":{},"engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt test"},"readme":"breath\n===========\n\nbuilds a javascript variable from a template.\n\nUsage\n-----\n\n```javascript\nvar breath = require('breath');\n\nvar template = {\n    say: {\n        hello: \"Hello <%= params.name %> (<%= params.birth %>)\"\n    },\n\n    params: {\n        name: \"javascript\",\n        birth: 1995\n    }\n};\n\nvar obj1 = breath(template).createSync();\nconsole.log(obj1.say.hello); // \"Hello javascript (1995)\"\n\nvar obj2 = breath(template).createSync({ params: { birth: \"by Netscape\" } });\nconsole.log(obj2.say.hello); // \"Hello javascript (by Netscape)\"\n\nvar value = breath(template).get('say.hello', { params: { name: \"Node\", birth: 2009 } });\nconsole.log(value); // \"Hello Node (2009)\"\n\n// async\nbreath(template).create(function (err, obj) {\n    //...\n});\n\nbreath(template).create({ params: { name: \"world\" }}, function (err, obj) {\n    //...\n});\n```\n\n\n\nLicense\n--------\n\nLicensed under the MIT License.\n\nCopyright (c) 2013 Yosuke Kumakura\n\nPermission is hereby granted, free of charge, to any person\nobtaining a copy of this software and associated documentation\nfiles (the \"Software\"), to deal in the Software without\nrestriction, including without limitation the rights to use,\ncopy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the\nSoftware is furnished to do so, subject to the following\nconditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES\nOF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT\nHOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,\nWHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\nFROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR\nOTHER DEALINGS IN THE SOFTWARE.\n","readmeFilename":"readme.md","bugs":{"url":"https://github.com/kumatch/breath/issues"},"_id":"breath@0.1.3","dist":{"shasum":"1a47ebee846317fb175984505fec9b424b38c17d","tarball":"https://registry.npmjs.org/breath/-/breath-0.1.3.tgz","integrity":"sha512-bDEj8HH1oh7tRUOyd07XalJuqpUab0DVKOv68Uo0vQtWIwaZPq89v8a1lXDmhAdB/xjb62NmleZm9OIO3+cyJQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDVoOD0Kt14aJXSgYKZDEJbM5yaFMQgM2ubQJEhMZUQLAIgBmZlvKGN7utYSMEYEdPSkt71o889ZoqXYtB1Xi9OCgI="}]},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"kumatch","email":"kumatch@gmail.com"},"maintainers":[{"name":"kumatch","email":"kumatch@gmail.com"}]},"0.1.4":{"author":{"name":"Yosuke Kumakura","email":"kumatch@gmail.com"},"name":"breath","description":"builds a javascript variable from a template.","version":"0.1.4","main":"./lib/breath.js","repository":{"type":"git","url":"https://github.com/kumatch/breath.git"},"github":"https://github.com/kumatch/breath","dependencies":{"lodash":"~1.3","async":"~0.2","nestraight":"0.1"},"devDependencies":{"chai":"*","mocha":"*","sinon":"*","grunt":"~0.4","grunt-mocha-test":"*"},"optionalDependencies":{},"engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt test"},"readme":"breath\n===========\n\nbuilds a javascript variable from a template.\n\n\nInstall\n-----\n\n    $ npm install breath\n\n\n\nUsage\n-----\n\n```javascript\nvar breath = require('breath');\n\nvar template = {\n    say: {\n        hello: \"Hello <%= params.name %> (<%= params.birth %>)\"\n    },\n\n    params: {\n        name: \"javascript\",\n        birth: 1995\n    }\n};\n\nvar obj1 = breath(template).createSync();\nconsole.log(obj1.say.hello); // \"Hello javascript (1995)\"\n\nvar obj2 = breath(template).createSync({ params: { birth: \"by Netscape\" } });\nconsole.log(obj2.say.hello); // \"Hello javascript (by Netscape)\"\n\nvar value = breath(template).get('say.hello', { params: { name: \"Node\", birth: 2009 } });\nconsole.log(value); // \"Hello Node (2009)\"\n\n// async\nbreath(template).create(function (err, obj) {\n    //...\n});\n\nbreath(template).create({ params: { name: \"world\" }}, function (err, obj) {\n    //...\n});\n```\n\n\n\nLicense\n--------\n\nLicensed under the MIT License.\n\nCopyright (c) 2013 Yosuke Kumakura\n\nPermission is hereby granted, free of charge, to any person\nobtaining a copy of this software and associated documentation\nfiles (the \"Software\"), to deal in the Software without\nrestriction, including without limitation the rights to use,\ncopy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the\nSoftware is furnished to do so, subject to the following\nconditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES\nOF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT\nHOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,\nWHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\nFROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR\nOTHER DEALINGS IN THE SOFTWARE.\n","readmeFilename":"readme.md","bugs":{"url":"https://github.com/kumatch/breath/issues"},"_id":"breath@0.1.4","dist":{"shasum":"c36555d239f3cb2c0f5e9fef0cecea9b506e9eb1","tarball":"https://registry.npmjs.org/breath/-/breath-0.1.4.tgz","integrity":"sha512-4IfZnFPSfxLmhbuALKhRKdGaBd0G02JHYXBaTFxiWs7/JeGJopTHqIptEVWhjGBQDAd40O/n6j2P0ClDB8YMdg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBDCs0f6vbizycF09FXyEPXfZl5flaxLBb+Nx/5FILf6AiEA2dgkHxvjYS8F8tcmTUvXXmRD3Td0M9Uw9+CB7KXpsBA="}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"kumatch","email":"kumatch@gmail.com"},"maintainers":[{"name":"kumatch","email":"kumatch@gmail.com"}]},"0.1.5":{"author":{"name":"Yosuke Kumakura","email":"kumatch@gmail.com"},"name":"breath","description":"builds a javascript variable from a template.","version":"0.1.5","main":"./lib/breath.js","repository":{"type":"git","url":"https://github.com/kumatch/breath.git"},"github":"https://github.com/kumatch/breath","dependencies":{"lodash":"~2.4","async":"~0.2","nestraight":"0.3"},"devDependencies":{"chai":"*","mocha":"*","sinon":"*","grunt":"~0.4","grunt-mocha-test":"*"},"optionalDependencies":{},"engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt test"},"readme":"breath\n===========\n\nbuilds a javascript variable from a template.\n\n[![Build Status](https://travis-ci.org/kumatch/breath.png?branch=master)](https://travis-ci.org/kumatch/breath)\n\n\nInstall\n-----\n\n    $ npm install breath\n\n\n\nUsage\n-----\n\n```javascript\nvar breath = require('breath');\n\nvar template = {\n    say: {\n        hello: \"Hello <%= params.name %> (<%= params.birth %>)\"\n    },\n\n    params: {\n        name: \"javascript\",\n        birth: 1995\n    }\n};\n\nvar obj1 = breath(template).createSync();\nconsole.log(obj1.say.hello); // \"Hello javascript (1995)\"\n\nvar obj2 = breath(template).createSync({ params: { birth: \"by Netscape\" } });\nconsole.log(obj2.say.hello); // \"Hello javascript (by Netscape)\"\n\nvar value = breath(template).get('say.hello', { params: { name: \"Node\", birth: 2009 } });\nconsole.log(value); // \"Hello Node (2009)\"\n\n// async\nbreath(template).create(function (err, obj) {\n    //...\n});\n\nbreath(template).create({ params: { name: \"world\" }}, function (err, obj) {\n    //...\n});\n```\n\n\n\nLicense\n--------\n\nLicensed under the MIT License.\n\nCopyright (c) 2013 Yosuke Kumakura\n\nPermission is hereby granted, free of charge, to any person\nobtaining a copy of this software and associated documentation\nfiles (the \"Software\"), to deal in the Software without\nrestriction, including without limitation the rights to use,\ncopy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the\nSoftware is furnished to do so, subject to the following\nconditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES\nOF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT\nHOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,\nWHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\nFROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR\nOTHER DEALINGS IN THE SOFTWARE.\n","readmeFilename":"readme.md","bugs":{"url":"https://github.com/kumatch/breath/issues"},"homepage":"https://github.com/kumatch/breath","_id":"breath@0.1.5","dist":{"shasum":"527ccdf56d95eb10e2e7d76d00ca073589c6e139","tarball":"https://registry.npmjs.org/breath/-/breath-0.1.5.tgz","integrity":"sha512-BwciT2V+hIWoAmdmfNSeKw3LTqm5n72HVBFo1koUOlfXPxkt8n0r6bBE6NA3XEyfBZ0CgHut12Lyl/Gcv72xdA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCziSnSOE7vyCzmFKm3nwK1iZuKmGvX2nZr388+zDGJKgIgDm6I+/lmAqYQXvx3AHus6xR16uP5Ebc7V7K2XjN/lp4="}]},"_from":".","_npmVersion":"1.3.17","_npmUser":{"name":"kumatch","email":"kumatch@gmail.com"},"maintainers":[{"name":"kumatch","email":"kumatch@gmail.com"}]},"0.2.0":{"author":{"name":"Yosuke Kumakura","email":"kumatch@gmail.com"},"name":"breath","description":"builds a javascript variable from a template.","version":"0.2.0","main":"./lib/breath.js","repository":{"type":"git","url":"https://github.com/kumatch/breath.git"},"github":"https://github.com/kumatch/breath","dependencies":{"lodash":"~2.4","async":"~0.2","nestraight":"0.3"},"devDependencies":{"chai":"*","mocha":"*","sinon":"*","grunt":"~0.4","grunt-mocha-test":"*"},"optionalDependencies":{},"engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt test"},"readme":"breath\n===========\n\nbuilds a javascript variable from a template.\n\n[![Build Status](https://travis-ci.org/kumatch/breath.png?branch=master)](https://travis-ci.org/kumatch/breath)\n\n\nInstall\n-----\n\n    $ npm install breath\n\n\n\nUsage\n-----\n\n```javascript\nvar breath = require('breath');\n\nvar template = {\n    say: {\n        hello: \"Hello <%= params.name %> (<%= params.birth %>)\"\n    },\n\n    params: {\n        name: \"javascript\",\n        birth: 1995\n    }\n};\n\nvar obj1 = breath(template).createSync();\nconsole.log(obj1.say.hello); // \"Hello javascript (1995)\"\n\nvar obj2 = breath(template).createSync({ params: { birth: \"by Netscape\" } });\nconsole.log(obj2.say.hello); // \"Hello javascript (by Netscape)\"\n\nvar value = breath(template).get('say.hello', { params: { name: \"Node\", birth: 2009 } });\nconsole.log(value); // \"Hello Node (2009)\"\n\n// async\nbreath(template).create(function (err, obj) {\n    //...\n});\n\nbreath(template).create({ params: { name: \"world\" }}, function (err, obj) {\n    //...\n});\n```\n\n\n\nLicense\n--------\n\nLicensed under the MIT License.\n\nCopyright (c) 2013 Yosuke Kumakura\n\nPermission is hereby granted, free of charge, to any person\nobtaining a copy of this software and associated documentation\nfiles (the \"Software\"), to deal in the Software without\nrestriction, including without limitation the rights to use,\ncopy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the\nSoftware is furnished to do so, subject to the following\nconditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES\nOF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT\nHOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,\nWHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\nFROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR\nOTHER DEALINGS IN THE SOFTWARE.\n","readmeFilename":"readme.md","bugs":{"url":"https://github.com/kumatch/breath/issues"},"homepage":"https://github.com/kumatch/breath","_id":"breath@0.2.0","dist":{"shasum":"002ac39d12d1de87c8587ab94d66d2802084b743","tarball":"https://registry.npmjs.org/breath/-/breath-0.2.0.tgz","integrity":"sha512-H/1ENg5UZH+oyzWzlmwazimpUA9Pw70pmuY4c8jnJBe4xO5cuoptXHhHh5P+c+f/AYbZ/dOgPQk8N0L8OYlRjw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCMPb0I+Mr5DdJkMwKwDRiBJY7Ytxj07cHPdxZTve4GCAIhAKB6ELncgn1d9qyW7UeKjDup0ChizpYO9FYZA81znCQz"}]},"_from":".","_npmVersion":"1.3.17","_npmUser":{"name":"kumatch","email":"kumatch@gmail.com"},"maintainers":[{"name":"kumatch","email":"kumatch@gmail.com"}]}},"readme":"breath\n===========\n\nbuilds a javascript variable from a template.\n\nUsage (draft)\n-----\n\n```javascript\nvar breath = require('breath');\n\nvar template = {\n    say: {\n        hello: \"Hello <%= params.name %> (<%= params.birth %>)\"\n    },\n\n    params: {\n        name: \"javascript\",\n        birth: 1995\n    }\n};\n\nvar data = breath(template).toObject();\nconsole.log(data.say.hello); // \"Hello javascript (1995)\"\n\nvar data2 = breath(template).toObject({ params: { birth: \"by Netscape\" } });\nconsole.log(data2.say.hello); // \"Hello javascript (by Netscape)\"\n\nvar value = breath(template).get('say.hello', { params: { name: \"Node\", birth: 2009 } });\nconsole.log(value); // \"Hello Node (2009)\"\n```\n\n\n\nLicense\n--------\n\nLicensed under the MIT License.\n\nCopyright (c) 2013 Yosuke Kumakura\n\nPermission is hereby granted, free of charge, to any person\nobtaining a copy of this software and associated documentation\nfiles (the \"Software\"), to deal in the Software without\nrestriction, including without limitation the rights to use,\ncopy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the\nSoftware is furnished to do so, subject to the following\nconditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES\nOF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT\nHOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,\nWHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\nFROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR\nOTHER DEALINGS IN THE SOFTWARE.\n","maintainers":[{"name":"kumatch","email":"kumatch@gmail.com"}],"time":{"modified":"2022-06-13T05:05:28.189Z","created":"2013-09-05T14:39:41.125Z","0.0.1":"2013-09-05T14:39:44.321Z","0.0.2":"2013-09-06T14:25:35.275Z","0.1.0":"2013-09-09T07:09:52.363Z","0.1.1":"2013-09-16T14:40:34.481Z","0.1.2":"2013-09-16T15:23:13.676Z","0.1.3":"2013-09-23T13:22:50.690Z","0.1.4":"2013-09-25T13:48:13.202Z","0.1.5":"2014-01-09T06:46:10.401Z","0.2.0":"2014-01-09T08:06:01.133Z"},"author":{"name":"Yosuke Kumakura","email":"kumatch@gmail.com"},"repository":{"type":"git","url":"https://github.com/kumatch/breath.git"}}