{"_id":"@bqardi/ultimate-element-creator","_rev":"1-10bd5559cdfb34944a1c4b1293130466","name":"@bqardi/ultimate-element-creator","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.1":{"name":"@bqardi/ultimate-element-creator","version":"1.0.1","description":"Create advanced elements with tag name, class name, id and attributes.","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/bqardi-opensource-projects/ultimate-element-creator.git"},"keywords":["element","create","tag","class","id","attribute"],"author":{"name":"Sune & Silviu"},"license":"MIT","bugs":{"url":"https://github.com/bqardi-opensource-projects/ultimate-element-creator/issues"},"homepage":"https://github.com/bqardi-opensource-projects/ultimate-element-creator#readme","gitHead":"aa79a13d79c78fbf3e470a19f10a49002532f472","_id":"@bqardi/ultimate-element-creator@1.0.1","_nodeVersion":"14.13.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-ZpYo+LaIuMiEaGkymOGwJruY0I02TVa1pmBwpKht2Kp9sqP9qKZQEQNBdcLsvSkhlUHBWjBcP6k7qwj2K4cPOg==","shasum":"7d64022eba46f247098132b5d183d2f9f2db348c","tarball":"https://registry.npmjs.org/@bqardi/ultimate-element-creator/-/ultimate-element-creator-1.0.1.tgz","fileCount":3,"unpackedSize":2180,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfkb1NCRA9TVsSAnZWagAAuzYP/j20Il3NLDaUo3qD+KDj\n/WwmwuXnxJf59qHDjjX/fY4P96Tc6+2fNJfcCYt4rhSrapng+FNebLTDaB28\n5PLoHsNrMY2nqei86qdubVMjeYi3c3JIL0OKDyewEHOVmYlr4cixzCQQ82uj\n0MIGK1/ucoig92Scz0ppKbDkma+/wDuTW8tf35tzz/y+PWN4HhAeBeA7DPBU\nNEhQseICVcNTQnsskHWOfZsaaSVqXV04ixLfIXAvsTXTZglYL41AKN7MsBS5\nr+I8s5t5LyA0rzbUSszKWle4eajBigp1/PeTYiJ8YE1nG4VyOruj5o29JgeV\nHSRfD7mQfGbu2XIca1RJg/MtoIhALsBY/jaHLGKTKvIlUDqzjgeffy/z7OYw\nZQYFO7OueZRObJCTDv8g4rD8iFZUONj5THC/+5cGLgwMcUbYhWfdVpH/SdAG\n6QRkqVlb7ylr/DGeaxyNCzx7NALALa1DmJbNjVz/4y4nHJCV1vjhuW6MAAOz\nPvZY7Ymv4XAwZdGDDQxNbedyiKSjTwDPYaEoub8nSpcS9eNQANbK+giLec69\nyYBr+qriLItZl0YuwLW7AwqSxn/bdpYIVw6W15ElFd1C48UgBGrpH8sO7q/x\nefT92DkienCp7VquaUldQmPqrgf+hK3pQNQM4q6EbSceIEAhHJxld76QBCPX\n7VAU\r\n=88A2\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC8jD3C6uv19ABxf06huBaUPRr1u/90puOQU4djSKC0AQIgTykkuzXeY2a5rTQPKr3FjgezIL9iqd+A2TzrJ6Mi+fA="}]},"maintainers":[{"name":"bqardi","email":"bqardi@msn.com"}],"_npmUser":{"name":"bqardi","email":"bqardi@msn.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ultimate-element-creator_1.0.1_1603386700967_0.43177274857838177"},"_hasShrinkwrap":false}},"time":{"created":"2020-10-22T17:11:40.919Z","1.0.1":"2020-10-22T17:11:41.095Z","modified":"2022-04-04T20:19:19.625Z"},"maintainers":[{"name":"bqardi","email":"bqardi@msn.com"}],"description":"Create advanced elements with tag name, class name, id and attributes.","homepage":"https://github.com/bqardi-opensource-projects/ultimate-element-creator#readme","keywords":["element","create","tag","class","id","attribute"],"repository":{"type":"git","url":"git+https://github.com/bqardi-opensource-projects/ultimate-element-creator.git"},"author":{"name":"Sune & Silviu"},"bugs":{"url":"https://github.com/bqardi-opensource-projects/ultimate-element-creator/issues"},"license":"MIT","readme":"# Ultimate element creator\r\n\r\nCreate elements by tag-name and optionally attributes...\r\n\r\nImportant!\r\nIf attributes are needed, you MUST pass in an array with **exactly two** items in it, where the first is the **attribute name** and the second is the **attributes value**: `[\"class\", \"myClass\"]`.\r\n\r\nThis way, you can create as many attributes as you like.\r\n\r\n#### To import into your project:\r\nPlace this line of code at the top of your JavaScript file:\r\n```javascript\r\nimport createElement from \"https://unpkg.com/@bqardi/ultimate-element-creator@1.0.1/index.js\";\r\n```\r\n\r\nThen you can call the function `createElement()` when you need it:\r\n\r\n#### Example usage:\r\n```javascript\r\n// creating a div element without attributes\r\nlet myElement = createElement(\"div\");\r\n```\r\n\r\n#### With attributes:\r\n\r\n```javascript\r\n// creating an image element and several of its attributes (id, src and alt)\r\nlet myElement = createElement(\"img\", [\"id\", \"myID\"], [\"src\", \"./path/to/file\"], [\"alt\", \"This is my image\"]);\r\n```","readmeFilename":"readme.md"}