JSPM

string-convert

0.2.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2705204
  • Score
    100M100P100Q197306F
  • License MIT

String convertions

Package Exports

  • string-convert
  • string-convert/camel2hyphen

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (string-convert) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

string-convert

Set of string conversion functions

Installation

npm install string-convert --save

Methods

hyphen2camel

Converts hyphenated string to camelcase string

Example:

var hyphen2camel = require('string-convert/hyphen2camel');
hyphen2camel('min-width'); // minWidth
hyphen2camel('-moz-transition'); // MozTransition

camel2hyphen

Converts camel case string to hyphenated string

Example:

var camel2hyphen = require('string-convert/camel2hyphen');
camel2hyphen('minWidth');  // min-width
camel2hyphen('MozTransition'); //-moz-transition