{"_id":"parse-sel","_rev":"3-d5c128598491db360d76f2578e05cdf1","name":"parse-sel","description":"Parse hyperscript selector strings","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"parse-sel","version":"1.0.0","description":"Parse hyperscript selector strings","main":"index.js","scripts":{"test":"tape test.js"},"repository":{"type":"git","url":"git+https://github.com/acstll/parse-sel.git"},"keywords":["hyperscript","virtual","dom","html"],"author":{"name":"acstll"},"license":"MIT","bugs":{"url":"https://github.com/acstll/parse-sel/issues"},"homepage":"https://github.com/acstll/parse-sel#readme","dependencies":{"browser-split":"0.0.1"},"devDependencies":{"standard":"^7.1.2","tape":"^4.5.1"},"gitHead":"c08139da7ef1e936b5b8e982a0dc7d2f230af805","_id":"parse-sel@1.0.0","_shasum":"b9300d2bb946a06c22c98e208e47b2088690cbdd","_from":".","_npmVersion":"3.8.5","_nodeVersion":"4.2.3","_npmUser":{"name":"acstll","email":"arturo@arturu.com"},"dist":{"shasum":"b9300d2bb946a06c22c98e208e47b2088690cbdd","tarball":"https://registry.npmjs.org/parse-sel/-/parse-sel-1.0.0.tgz","integrity":"sha512-GLAtaUf/vkdsPQwFKKBR1LHsw4Sm5YVDSbzcPQqmq3N/qlI8gsxUMhSV8NRHj677eeJUV1YpI8OeALaUL5yxUQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDk5nE0/SMFiJcfef+YqBOyaoszhllk70hgHXsI5HDYdgIgdIViQR/YUVwEDfAjyyX1IK2sKz6ivlrrOYkSHbXRgns="}]},"maintainers":[{"name":"acstll","email":"arturo@arturu.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/parse-sel-1.0.0.tgz_1465327039413_0.22844606498256326"}}},"readme":"# parse-sel\n\nA \"parse selector\" kind of utility function.\n\n## Install\n\nWith [npm](http://npmjs.com) do:\n\n```bash\nnpm install parse-sel --save\n```\n\n## Usage\n\nThis module exports a function that takes a string with a [`hyperscript` selector](https://github.com/dominictarr/hyperscript) and returns an object.\n\n```js\nconst parseSelector = require('parse-sel')\n\nparseSelector('div#foo.bar')\n// =>\n// {\n//   tagName: 'div',\n//   id: 'foo',\n//   className: 'bar'\n// }\n  \n```\n\nYou can pass `true` as a second argument and get the `tagName` uppercase.\n\n## Credits\n\nThis is mainly lifted from the [virtual-dom](https://github.com/Matt-Esch/virtual-dom) module.\n[https://github.com/Matt-Esch/virtual-dom/blob/master/virtual-hyperscript/parse-tag.js](https://github.com/Matt-Esch/virtual-dom/blob/master/virtual-hyperscript/parse-tag.js)\n\nThere's also quite a few packages like this on [npm](http://npmjs.com).\n\n## License\n\nMIT\n","maintainers":[{"name":"acstll","email":"arturo@arturu.com"}],"time":{"modified":"2022-06-23T11:01:55.448Z","created":"2016-06-07T19:17:21.826Z","1.0.0":"2016-06-07T19:17:21.826Z"},"homepage":"https://github.com/acstll/parse-sel#readme","keywords":["hyperscript","virtual","dom","html"],"repository":{"type":"git","url":"git+https://github.com/acstll/parse-sel.git"},"author":{"name":"acstll"},"bugs":{"url":"https://github.com/acstll/parse-sel/issues"},"license":"MIT","readmeFilename":"README.md"}