1.0.5 • Published 5 years ago
hyphenate-style-name-esmodule-browser-export v1.0.5
ES6 native module fork
This fork provides a browser friendly export of the module at /es/index.js (ES6 JavaScript native module). That export includes all dependencies in one file so as to reduce http calls. The /es/index-nodeps.js file is similar but does not include dependencies. This one is for build optimization. The purpose of this and similar forks is to be able to load JS native modules and their dependencies from npm.
hyphenate-style-name
Hyphenates a camelcased CSS property name. For example:
backgroundColor
=>background-color
MozTransition
=>-moz-transition
msTransition
=>-ms-transition
color
=>color
Installation
$ npm install --save hyphenate-style-name
Usage
var hyphenateStyleName = require('hyphenate-style-name');
console.log(hyphenateStyleName('MozTransition')); // -moz-transition
License
BSD-3-Clause licensed. See LICENSE.