main
Last change
on this file was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 4 days ago |
F4 Finalna Verzija
|
-
Property mode
set to
100644
|
File size:
1010 bytes
|
Line | |
---|
1 | # Param Case
|
---|
2 |
|
---|
3 | [![NPM version][npm-image]][npm-url]
|
---|
4 | [![NPM downloads][downloads-image]][downloads-url]
|
---|
5 | [![Bundle size][bundlephobia-image]][bundlephobia-url]
|
---|
6 |
|
---|
7 | > Transform into a lower cased string with dashes between words.
|
---|
8 |
|
---|
9 | ## Installation
|
---|
10 |
|
---|
11 | ```
|
---|
12 | npm install param-case --save
|
---|
13 | ```
|
---|
14 |
|
---|
15 | ## Usage
|
---|
16 |
|
---|
17 | ```js
|
---|
18 | import { paramCase } from "param-case";
|
---|
19 |
|
---|
20 | paramCase("string"); //=> "string"
|
---|
21 | paramCase("dot.case"); //=> "dot-case"
|
---|
22 | paramCase("PascalCase"); //=> "pascal-case"
|
---|
23 | paramCase("version 1.2.10"); //=> "version-1-2-10"
|
---|
24 | ```
|
---|
25 |
|
---|
26 | The function also accepts [`options`](https://github.com/blakeembrey/change-case#options).
|
---|
27 |
|
---|
28 | ## License
|
---|
29 |
|
---|
30 | MIT
|
---|
31 |
|
---|
32 | [npm-image]: https://img.shields.io/npm/v/param-case.svg?style=flat
|
---|
33 | [npm-url]: https://npmjs.org/package/param-case
|
---|
34 | [downloads-image]: https://img.shields.io/npm/dm/param-case.svg?style=flat
|
---|
35 | [downloads-url]: https://npmjs.org/package/param-case
|
---|
36 | [bundlephobia-image]: https://img.shields.io/bundlephobia/minzip/param-case.svg
|
---|
37 | [bundlephobia-url]: https://bundlephobia.com/result?p=param-case
|
---|
Note:
See
TracBrowser
for help on using the repository browser.