# string-convert

> String convertions

Latest version **0.2.1** (published 2014-11-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install string-convert
pnpm add string-convert
yarn add string-convert
bun add string-convert
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.1 |
| Published | 2014-11-22 |
| First published | 2014-11-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 7 |
| Maintainers | akiran |

## Links

- npm: https://www.npmjs.com/package/string-convert
- Repository: https://github.com/akiran/string-convert
- Issues: https://github.com/akiran/string-convert/issues
- npm.io page: https://npm.io/package/string-convert

## Recent versions

- 0.2.1 (latest) — 2014-11-22
- 0.2.0 — 2014-11-22
- 0.1.0 — 2014-11-22

## README

string-convert
==============

Set of string conversion functions

Installation
------------
  npm install string-convert --save

Methods
-------

### hyphen2camel

Converts hyphenated string to camelcase string

Example:

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

### camel2hyphen

Converts camel case string to hyphenated string

Example:

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

---
_Source: https://npm.io/package/string-convert · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
