1.0.5 • Published 7 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-colorMozTransition=>-moz-transitionmsTransition=>-ms-transitioncolor=>color
Installation
$ npm install --save hyphenate-style-nameUsage
var hyphenateStyleName = require('hyphenate-style-name');
console.log(hyphenateStyleName('MozTransition')); // -moz-transitionLicense
BSD-3-Clause licensed. See LICENSE.