All Projects → feross → hyperscript-attribute-to-property

feross / hyperscript-attribute-to-property

Licence: MIT license
Convert hyperscript attributes to properties

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to hyperscript-attribute-to-property

awesome-yo-yo
Modules & resources related to yo-yo
Stars: ✭ 27 (+42.11%)
Mutual labels:  choo, hyperx
stream
Monorepo for Resonate Coop player
Stars: ✭ 164 (+763.16%)
Mutual labels:  choo
attribute-events
🔥 Fire events on attribute changes of your Eloquent model
Stars: ✭ 198 (+942.11%)
Mutual labels:  attributes
choo-offline
🔧 offline first support for choo apps
Stars: ✭ 12 (-36.84%)
Mutual labels:  choo
Attrs
Python Classes Without Boilerplate
Stars: ✭ 3,786 (+19826.32%)
Mutual labels:  attributes
choo-pwa
PWA with Choo
Stars: ✭ 18 (-5.26%)
Mutual labels:  choo
commonmark-attributes-extension
The Attributes extension adds a syntax to define attributes on the various HTML elements in markdown’s output.
Stars: ✭ 32 (+68.42%)
Mutual labels:  attributes
score-zeroshot
Semantically consistent regularizer for zero-shot learning
Stars: ✭ 65 (+242.11%)
Mutual labels:  attributes
nanoconstruct
Tiny tool to test and develop nanocomponents
Stars: ✭ 12 (-36.84%)
Mutual labels:  choo
OpendTect-External-Attributes
External Attribute scripts for the open source seismic interpretation system - OpendTect
Stars: ✭ 22 (+15.79%)
Mutual labels:  attributes
Accesscontrol
Role and Attribute based Access Control for Node.js
Stars: ✭ 1,723 (+8968.42%)
Mutual labels:  attributes
olaf
A P2P chat using Dat.
Stars: ✭ 24 (+26.32%)
Mutual labels:  choo
component-box
A little component cacher 📦
Stars: ✭ 25 (+31.58%)
Mutual labels:  choo
svg-element-attributes
Map of SVG elements to allowed attributes
Stars: ✭ 16 (-15.79%)
Mutual labels:  attributes
attributes
PHP Attributes Reader. Subtree split of the Spiral Attributes component (see spiral/framework)
Stars: ✭ 22 (+15.79%)
Mutual labels:  attributes
laravel-boolean-dates
Automatically convert Eloquent model boolean attributes to dates (and back).
Stars: ✭ 31 (+63.16%)
Mutual labels:  attributes
cache-component
DEPRECATED: Use nanocomponent. Will continue to operate as normal
Stars: ✭ 16 (-15.79%)
Mutual labels:  choo
magento-attribute-option-order-fix
A module to re-apply the relevance order for configurable attribute options in Magento CE 1.9.1 or EE 1.14.2
Stars: ✭ 27 (+42.11%)
Mutual labels:  attributes
choo-test
🚂🚋🚋🚋 Easy choo app unit testing
Stars: ✭ 23 (+21.05%)
Mutual labels:  choo
Choo
🚂🚋 - sturdy 4kb frontend framework
Stars: ✭ 6,637 (+34831.58%)
Mutual labels:  choo

hyperscript-attribute-to-property travis npm downloads javascript style guide

Convert hyperscript attributes to properties

Some html attributes have different JavaScript property names. The most annoying of these is class v.s. className.

With this package, you can do this:

var vnode = h('div', { class: 'my-class' })

Instead of this:

var vnode = h('div', { className: 'my-class' })

Works with virtual-dom, react, hyperscript, or any DOM builder with a hyperscript-style API: h(tagName, attrs, children).

install

npm install hyperscript-attribute-to-property

usage

example

var attrToProp = require('hyperscript-attribute-to-property')
var h = attrToProp(require('virtual-dom/h'))

hyperx

If you use the hyperx package, then this functionality is built-in and implemented via this package :)

license

MIT. Copyright (c) Feross Aboukhadijeh.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].