{"id":14981997,"url":"https://github.com/feross/hyperscript-attribute-to-property","last_synced_at":"2025-09-13T01:31:49.943Z","repository":{"id":57128401,"uuid":"53188014","full_name":"feross/hyperscript-attribute-to-property","owner":"feross","description":"Convert hyperscript attributes to properties","archived":false,"fork":false,"pushed_at":"2023-10-28T20:30:01.000Z","size":17,"stargazers_count":19,"open_issues_count":2,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-02T18:37:48.425Z","etag":null,"topics":["attributes","choo","html","hyperscript","hyperx","javascript","nodejs"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/feross.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-03-05T06:46:43.000Z","updated_at":"2024-09-25T09:10:54.000Z","dependencies_parsed_at":"2024-06-18T16:49:00.077Z","dependency_job_id":"f752862b-8fe7-47aa-87ed-e6db9291652e","html_url":"https://github.com/feross/hyperscript-attribute-to-property","commit_stats":{"total_commits":21,"total_committers":3,"mean_commits":7.0,"dds":0.1428571428571429,"last_synced_commit":"d78d26649b2cd3c3e1da642b783766e3bf8131c3"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feross%2Fhyperscript-attribute-to-property","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feross%2Fhyperscript-attribute-to-property/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feross%2Fhyperscript-attribute-to-property/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feross%2Fhyperscript-attribute-to-property/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/feross","download_url":"https://codeload.github.com/feross/hyperscript-attribute-to-property/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":232806885,"owners_count":18579333,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["attributes","choo","html","hyperscript","hyperx","javascript","nodejs"],"created_at":"2024-09-24T14:04:37.813Z","updated_at":"2025-01-07T00:52:56.469Z","avatar_url":"https://github.com/feross.png","language":"JavaScript","readme":"# hyperscript-attribute-to-property [![travis][travis-image]][travis-url] [![npm][npm-image]][npm-url] [![downloads][downloads-image]][downloads-url] [![javascript style guide][standard-image]][standard-url]\n\n[travis-image]: https://img.shields.io/travis/feross/hyperscript-attribute-to-property/master.svg\n[travis-url]: https://travis-ci.org/feross/hyperscript-attribute-to-property\n[npm-image]: https://img.shields.io/npm/v/hyperscript-attribute-to-property.svg\n[npm-url]: https://npmjs.org/package/hyperscript-attribute-to-property\n[downloads-image]: https://img.shields.io/npm/dm/hyperscript-attribute-to-property.svg\n[downloads-url]: https://npmjs.org/package/hyperscript-attribute-to-property\n[standard-image]: https://img.shields.io/badge/code_style-standard-brightgreen.svg\n[standard-url]: https://standardjs.com\n\n### Convert hyperscript attributes to properties\n\nSome html attributes have different JavaScript property names. The most annoying of these\nis `class` v.s. `className`.\n\nWith this package, you can do this:\n\n```js\nvar vnode = h('div', { class: 'my-class' })\n```\n\nInstead of this:\n\n```js\nvar vnode = h('div', { className: 'my-class' })\n```\n\nWorks with [virtual-dom](https://www.npmjs.com/package/virtual-dom), [react](https://www.npmjs.com/package/react), [hyperscript](https://www.npmjs.com/package/hyperscript), or any DOM builder with a hyperscript-style API: `h(tagName, attrs, children)`.\n\n## install\n\n```\nnpm install hyperscript-attribute-to-property\n```\n\n## usage\n\n###  example\n\n```js\nvar attrToProp = require('hyperscript-attribute-to-property')\nvar h = attrToProp(require('virtual-dom/h'))\n```\n\n### hyperx\n\nIf you use the [hyperx](https://npmjs.com/package/hyperx) package, then this functionality\nis built-in and implemented via this package :)\n\n## license\n\nMIT. Copyright (c) [Feross Aboukhadijeh](http://feross.org).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffeross%2Fhyperscript-attribute-to-property","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffeross%2Fhyperscript-attribute-to-property","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffeross%2Fhyperscript-attribute-to-property/lists"}