{"_id":"express-helpers","_rev":"23-c0c6347f9834a2b85be24ce5c21413b3","name":"express-helpers","description":"Express Helpers","dist-tags":{"latest":"1.3.2"},"versions":{"0.1.0":{"name":"express-helpers","version":"0.1.0","description":"Express Helpers","keywords":["express","helper","ejs"],"author":{"name":"Masahiro Hayashi","email":"hayashi.masahiro@gmail.com"},"contributors":[{"name":"Tim Anema","email":"timanema@gmail.com"}],"directories":{"lib":"./lib"},"engines":{"node":">= 0.2.0"},"repository":{"type":"git","url":"git://github.com/tanema/express-helpers.git"},"dependencies":{"ejs":"*"},"_npmUser":{"name":"tanema","email":"timanema@gmail.com"},"_id":"express-helpers@0.1.0","devDependencies":{},"_engineSupported":true,"_npmVersion":"1.1.0-beta-4","_nodeVersion":"v0.6.6","_defaultsLoaded":true,"dist":{"shasum":"6b4f77ad4c136c30ed26bf9305baf1b099440252","tarball":"https://registry.npmjs.org/express-helpers/-/express-helpers-0.1.0.tgz","integrity":"sha512-t227GQRNxVsoBqRvTNeUgburWbii80nGuzZX8d6cmZg6CwXLYiezNe3dcvWmqqcfLGVdxpmM7egmeqYid9kFWw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHRK81Hp/ndlzGeWfkUiFjHyYSrnlutS3AplYWmFkCzBAiBh/td7jr7lsxD7TTvnfdRN0WUZIOQHwx1kG7Qdd5cMLQ=="}]},"maintainers":[{"name":"tanema","email":"timanema@gmail.com"}]},"1.0.0":{"name":"express-helpers","version":"1.0.0","description":"Express Helpers","keywords":["express","helper","ejs"],"author":{"name":"Masahiro Hayashi","email":"hayashi.masahiro@gmail.com"},"contributors":[{"name":"Tim Anema","email":"timanema@gmail.com"}],"directories":{"lib":"./lib"},"engines":{"node":">= 0.2.0"},"repository":{"type":"git","url":"git://github.com/tanema/express-helpers.git"},"dependencies":{"ejs":"*"},"_npmUser":{"name":"tanema","email":"timanema@gmail.com"},"_id":"express-helpers@1.0.0","devDependencies":{},"_engineSupported":true,"_npmVersion":"1.1.0-beta-4","_nodeVersion":"v0.6.6","_defaultsLoaded":true,"dist":{"shasum":"8208565e013b426a0e38d9eba9c5c53c0008f36f","tarball":"https://registry.npmjs.org/express-helpers/-/express-helpers-1.0.0.tgz","integrity":"sha512-Of6R8nfhADuK8K9ytaVfb2G5t3uR3oqP4EV53bT3gMRGtg3PYh+5puav0AUmR1vjyjSqhwStljgSV0bDCQQxIQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDRqk3LpAA9rLKHdFCgVes0ZOR/x5khXTczVj6VaAF15AiEAmEHr2p29ZuaQfanKJ+Ogru2g6MR3i6T/gzEriEc2N0k="}]},"maintainers":[{"name":"tanema","email":"timanema@gmail.com"}]},"1.1.0":{"name":"express-helpers","version":"1.1.0","description":"Express Helpers","keywords":["express","helper","viewhelper","ejs"],"author":{"name":"Masahiro Hayashi","email":"hayashi.masahiro@gmail.com"},"contributors":[{"name":"Tim Anema","email":"timanema@gmail.com"}],"directories":{"lib":"./lib"},"engines":{"node":">= 0.2.0"},"repository":{"type":"git","url":"git://github.com/tanema/express-helpers.git"},"dependencies":{"ejs":"*"},"_npmUser":{"name":"tanema","email":"timanema@gmail.com"},"_id":"express-helpers@1.1.0","devDependencies":{},"_engineSupported":true,"_npmVersion":"1.1.0-beta-4","_nodeVersion":"v0.6.6","_defaultsLoaded":true,"dist":{"shasum":"9083eea18eb32a04ce47a5e4f0e2d0b70e1e1795","tarball":"https://registry.npmjs.org/express-helpers/-/express-helpers-1.1.0.tgz","integrity":"sha512-t2FaTOyysKqB8hN7Oar5WYC5ImqWYYncnYg9tjV6dI+1Yhy4xVdV+CDkerbYAopRyZSkBTLI81RreTEhAvmW/w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGll8TtsYAFuyAfLmv5KIsaG5bG7CPd3wo/mg9g60tC1AiADlh31hl8gMCm78rxSh0hRgfQLLRSt82XzAFrys3Hwng=="}]},"maintainers":[{"name":"tanema","email":"timanema@gmail.com"}]},"1.2.0":{"name":"express-helpers","version":"1.2.0","description":"Express Helpers","keywords":["express","helper","viewhelper","ejs"],"author":{"name":"Masahiro Hayashi","email":"hayashi.masahiro@gmail.com"},"contributors":[{"name":"Tim Anema","email":"timanema@gmail.com"}],"directories":{"lib":"./lib"},"engines":{"node":">= 0.2.0"},"repository":{"type":"git","url":"git://github.com/tanema/express-helpers.git"},"dependencies":{"ejs":"*"},"_npmUser":{"name":"tanema","email":"timanema@gmail.com"},"_id":"express-helpers@1.2.0","devDependencies":{},"_engineSupported":true,"_npmVersion":"1.1.0-beta-4","_nodeVersion":"v0.6.6","_defaultsLoaded":true,"dist":{"shasum":"ec0782ee67e90b1752010b5dfe8e738978934fd6","tarball":"https://registry.npmjs.org/express-helpers/-/express-helpers-1.2.0.tgz","integrity":"sha512-Tl+yMaWQoBsGpbDoqiqHtuJSQZxAPGPEJV441CkjJxPmgD3CkQRaR/8yng+kmPok2mXBXyJdmjZPr8iI0Cc08g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCH8lvT1Jnfc+dpCVG52sO1hlyJFLdKw4VcxGyNsRv7xAIgSv/p6FavxW6UewsYyEDBpTDa0eVFwLgYYVwa0HYs20E="}]},"maintainers":[{"name":"tanema","email":"timanema@gmail.com"}]},"1.3.0":{"name":"express-helpers","version":"1.3.0","description":"Express Helpers","keywords":["express","helper","viewhelper","ejs"],"author":{"name":"Masahiro Hayashi","email":"hayashi.masahiro@gmail.com"},"contributors":[{"name":"Tim Anema","email":"timanema@gmail.com"}],"directories":{"lib":"./lib"},"engines":{"node":">= 0.2.0"},"repository":{"type":"git","url":"git://github.com/tanema/express-helpers.git"},"dependencies":{"ejs":"*"},"_npmUser":{"name":"tanema","email":"timanema@gmail.com"},"_id":"express-helpers@1.3.0","devDependencies":{},"optionalDependencies":{},"_engineSupported":true,"_npmVersion":"1.1.16","_nodeVersion":"v0.6.15","_defaultsLoaded":true,"dist":{"shasum":"cc07b5d5774dcf1a2cc84a16f93c607f59ebcfe1","tarball":"https://registry.npmjs.org/express-helpers/-/express-helpers-1.3.0.tgz","integrity":"sha512-YBIGawThUGnehQt2BSjdKDjbYJKAcGcWdR4ySsFJzngHkBo4RyT/FhAXkUgc1aCd+OLc9kOWVlR2lmOGl+B3cw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDIhueXrmzHJ7XStC6UvuxCJc4zDJoR7MWejmgt4Bu3rwIhANfrFfKIGalBjBjFW4NZ34oTJB9VHzk4gZpCE4eEfhhZ"}]},"maintainers":[{"name":"tanema","email":"timanema@gmail.com"}]},"1.2.1":{"name":"express-helpers","version":"1.2.1","description":"Express Helpers","keywords":["express","helper","viewhelper","ejs"],"author":{"name":"Masahiro Hayashi","email":"hayashi.masahiro@gmail.com"},"contributors":[{"name":"Tim Anema","email":"timanema@gmail.com"},{"name":"Ernesto Cambustón","email":"e.cambuston@gmail.com"}],"directories":{"lib":"./lib"},"engines":{"node":">= 0.2.0"},"repository":{"type":"git","url":"https://github.com/tanema/express-helpers"},"dependencies":{"ejs":"*"},"_id":"express-helpers@1.2.1","dist":{"shasum":"ffe92d975efa460218fa9f03dd3405eef25e77d8","tarball":"https://registry.npmjs.org/express-helpers/-/express-helpers-1.2.1.tgz","integrity":"sha512-RX6cZCZzhewZTXCyP2AbmKp7cMHClPzXl/F5up7Cyh3cGVLM0ocVkU4UrOl7TOQQhVw9ADPo39J2hoxgR5r/EQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCH4Tswj2zNpwkL7AY3ozx8N0BXl+ztHE9Cu7Vipu1YrAIhAJVayKzNKsBFG41H8z8fyJzRE5gNCWjz6Vpv46Shm4Fo"}]},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"tanema","email":"timanema@gmail.com"},"maintainers":[{"name":"tanema","email":"timanema@gmail.com"}]},"1.3.1":{"name":"express-helpers","version":"1.3.1","description":"Express Helpers","keywords":["express","helper","viewhelper","ejs"],"author":{"name":"Masahiro Hayashi","email":"hayashi.masahiro@gmail.com"},"contributors":[{"name":"Tim Anema","email":"timanema@gmail.com"}],"directories":{"lib":"./lib"},"engines":{"node":">= 0.2.0"},"repository":{"type":"git","url":"https://github.com/tanema/express-helpers"},"dependencies":{"ejs":"*"},"_id":"express-helpers@1.3.1","dist":{"shasum":"c1c97429c30259b6812f9d1976a51d448bd7036f","tarball":"https://registry.npmjs.org/express-helpers/-/express-helpers-1.3.1.tgz","integrity":"sha512-chjzQRzztLlmonhPghGPJ0VxSrgmHoD7XDx9MbnerXFrQ53hR+89d3gEoB1s25nocpSuY9s7l4vAa3DSOVTzOw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCWEJ4HT1Z79vrBu+HXO26Nmjun7fRApcyYhx2fc9q91QIgdqsMJYx6+qJD+iInE19BVqxd2AtwwaDCsUPmvm3g9Vo="}]},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"tanema","email":"timanema@gmail.com"},"maintainers":[{"name":"tanema","email":"timanema@gmail.com"}]},"1.3.2":{"name":"express-helpers","version":"1.3.2","description":"Express Helpers","keywords":["express","helper","viewhelper","ejs"],"author":{"name":"Masahiro Hayashi","email":"hayashi.masahiro@gmail.com"},"contributors":[{"name":"Tim Anema","email":"timanema@gmail.com"}],"directories":{"lib":"./lib"},"engines":{"node":">= 0.2.0"},"repository":{"type":"git","url":"https://github.com/tanema/express-helpers"},"dependencies":{"ejs":"*"},"bugs":{"url":"https://github.com/tanema/express-helpers/issues"},"_id":"express-helpers@1.3.2","dist":{"shasum":"bf262a65e61236924d20ce9a28cd704613a019a8","tarball":"https://registry.npmjs.org/express-helpers/-/express-helpers-1.3.2.tgz","integrity":"sha512-Jrcsv/nq/hPbPTYQCh3od0cXe193Iqx5C1z1rXK+JZX/3Ru5eakDfoOgYlfHUPXamH4vlAvZcuC+fp+sDdR+Lw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAI3xakQGfCJreNR8p1pdkon5Q9qfd6AiHCeT9c5PFbSAiEA0+McijEhBLt6BZ3AhqB2aalMS3pqtSIrB7D8ha8r54Q="}]},"_from":".","_npmVersion":"1.3.2","_npmUser":{"name":"tanema","email":"timanema@gmail.com"},"maintainers":[{"name":"tanema","email":"timanema@gmail.com"}]}},"readme":"# Express Helpers\n\nExpress Helpers is a port of EJS's ViewHelpers and additional helpers are very similar to those found in the Ruby on Rails framework.\n\n## Installation\n   \n    npm install express-helpers\n    \n## How to use\n\nRequire express and create a server.\n\n    var express = require('express');\n\tvar app = express.createServer();\n\nTo automatically inclue all helpers initialize like this. \n\n\tvar helpers = require('express-helpers')(app);\n\nOr more simply if you don't need any reference to the helpers object\n\n    require('express-helpers')(app);\n\t\nIf you want to only use some helpers require without the app and register necessary view helpers...\n\n## Express 3.0\n\n    var helpers = require('express-helpers')();\n\n    app.locals.date_tag = helpers.date_tag;\n    \n**Note: The is_current_page and link_to_unless_current helpers are not available like this since they need to be setup as middleware**    \n    \n## Express 2.0\n\n    var helpers = require('express-helpers')();\n\n    app.helpers({\n       date_tag: helpers.date_tag\n    });\n\nThen use it in a ejs view like a rails view\n\n    <% form_for(\"user\", function(f){ %>\n        <%- f.label_for(\"username\") %>\n        <%- f.text_field(\"username\") %><br />\n\n        <%- f.submit() %><br />\n    <% }) %>\n\n\nFor more help and usage instructions see the [WIKI](https://github.com/tanema/express-helpers/wiki)\n\t\t\t\n## License\n\n(The MIT License)\n\nEJS - Embedded JavaScript\n\nCopyright (c) 2007 Edward Benson \n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n\n\nPorted by Masahiro Hayashi <hayashi.masahiro@gmail.com>\n\n","maintainers":[{"name":"tanema","email":"timanema@gmail.com"}],"time":{"modified":"2022-06-17T22:20:12.215Z","created":"2012-02-23T02:10:05.088Z","0.1.0":"2012-02-23T02:10:06.404Z","1.0.0":"2012-02-26T02:52:06.086Z","1.1.0":"2012-03-10T19:03:36.468Z","1.2.0":"2012-03-18T04:09:33.668Z","1.3.0":"2012-08-10T22:53:10.092Z","1.2.1":"2013-06-02T17:32:02.833Z","1.3.1":"2013-06-02T17:35:36.966Z","1.3.2":"2015-03-02T23:05:57.341Z"},"author":{"name":"Masahiro Hayashi","email":"hayashi.masahiro@gmail.com"},"repository":{"type":"git","url":"https://github.com/tanema/express-helpers"},"users":{"wagnercsfilho":true,"ksugiarto":true},"keywords":["express","helper","viewhelper","ejs"],"contributors":[{"name":"Tim Anema","email":"timanema@gmail.com"}],"readmeFilename":"README.md","bugs":{"url":"https://github.com/tanema/express-helpers/issues"}}