hyphenate-style-name-esmodule-browser-export

1.0.5 • Public • Published

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

npm versionBuild StatusCoverage StatusCode Climate

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.

Dependencies (0)

    Dev Dependencies (4)

    Package Sidebar

    Install

    npm i hyphenate-style-name-esmodule-browser-export

    Weekly Downloads

    1

    Version

    1.0.5

    License

    BSD-3-Clause

    Unpacked Size

    69.3 kB

    Total Files

    7

    Last publish

    Collaborators

    • misterfresh