string-convert

0.2.1 • Public • Published

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 

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.2.1
    5,769,156
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.2.1
    5,769,156
  • 0.2.0
    93
  • 0.1.0
    9

Package Sidebar

Install

npm i string-convert

Weekly Downloads

1,965,071

Version

0.2.1

License

MIT

Last publish

Collaborators

  • akiran