{"_id":"inferno-helpers","_rev":"3-ed69c05ae011d3c8f9dcdd3de772e3ab","name":"inferno-helpers","description":"Sugar syntax for creating inferno virtual DOM elements","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"inferno-helpers","version":"0.1.0","description":"Sugar syntax for creating inferno virtual DOM elements","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/rickmed/inferno-helpers.git"},"keywords":["inferno","virtual","dom"],"author":{"name":"Ricardo Medina"},"license":"MIT","bugs":{"url":"https://github.com/rickmed/inferno-helpers/issues"},"homepage":"https://github.com/rickmed/inferno-helpers#readme","gitHead":"c9c299035f638fd382667f0fc05d13a5f7e07ed2","_id":"inferno-helpers@0.1.0","_shasum":"c2d6c9993d648c3ec6c7abf60a0b3c8faaf789f2","_from":".","_npmVersion":"3.7.1","_nodeVersion":"5.1.1","_npmUser":{"name":"ricmed205","email":"rickmedina205@gmail.com"},"dist":{"shasum":"c2d6c9993d648c3ec6c7abf60a0b3c8faaf789f2","tarball":"https://registry.npmjs.org/inferno-helpers/-/inferno-helpers-0.1.0.tgz","integrity":"sha512-NPHtpNAOgkdTOR/4vre/T0n/ItfGFlUx3Kh3Z2kmF49OlY7w7fyTpY3+P+OpwJ9dM/73CoAy/Vi4ajUFFPVpiw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCJh9h5tK+Oo0lDQA4y/k8IVwGAdT9m4kcNcurMlQIUyAIgCmnzDASKtZf4HUgFnvxD1+SOTWkjCF/alPgTVUIsGBw="}]},"maintainers":[{"name":"ricmed205","email":"rickmedina205@gmail.com"}],"_npmOperationalInternal":{"host":"packages-6-west.internal.npmjs.com","tmp":"tmp/inferno-helpers-0.1.0.tgz_1455238938606_0.7823999794200063"}}},"readme":"# inferno-helpers\r\nSugar syntax for creating inferno virtual DOM elements\r\n\r\nInspired by this [hyperscript-helpers](https://github.com/ohanhi/hyperscript-helpers) \r\n\r\nTo use \r\n\r\n```javascript\r\nlet { div, p } = require('inferno-helpers')\r\n\r\nlet childNode = p('.class', 'Hello', { style: { marginLeft:200 } })\r\n\r\nlet parentNode = div(childNode, '.class1 #id .otherClass', 'Hello again!')\r\n\r\nlet template = createTemplate( () => parentNode )\r\n\r\nimport InfernoDOM from 'inferno-dom'\r\nInfernoDOM.render(template(), document.getElementById('app'))\r\n```\r\n\r\nArguments (can pass any number of them and in any order):\r\n- selector: class or id (string that starts with . or #).\r\n- attributes: object.\r\n- children: another element, a string or an array of strings or elements.\r\nNOTE: if need to pass a child string that starts with . or #, wrap it in []\r\n\r\n","maintainers":[{"name":"ricmed205","email":"rickmedina205@gmail.com"}],"time":{"modified":"2022-06-19T01:09:20.568Z","created":"2016-02-12T01:02:21.854Z","0.1.0":"2016-02-12T01:02:21.854Z"},"homepage":"https://github.com/rickmed/inferno-helpers#readme","keywords":["inferno","virtual","dom"],"repository":{"type":"git","url":"git+https://github.com/rickmed/inferno-helpers.git"},"author":{"name":"Ricardo Medina"},"bugs":{"url":"https://github.com/rickmed/inferno-helpers/issues"},"license":"MIT","readmeFilename":"README.md"}