main
Last change
on this file was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 3 days ago |
F4 Finalna Verzija
|
-
Property mode
set to
100644
|
File size:
983 bytes
|
Rev | Line | |
---|
[79a0317] | 1 | # Dot 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 case string with a period between words.
|
---|
| 8 |
|
---|
| 9 | ## Installation
|
---|
| 10 |
|
---|
| 11 | ```
|
---|
| 12 | npm install dot-case --save
|
---|
| 13 | ```
|
---|
| 14 |
|
---|
| 15 | ## Usage
|
---|
| 16 |
|
---|
| 17 | ```js
|
---|
| 18 | import { dotCase } from "dot-case";
|
---|
| 19 |
|
---|
| 20 | dotCase("string"); //=> "string"
|
---|
| 21 | dotCase("dot.case"); //=> "dot.case"
|
---|
| 22 | dotCase("PascalCase"); //=> "pascal.case"
|
---|
| 23 | dotCase("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/dot-case.svg?style=flat
|
---|
| 33 | [npm-url]: https://npmjs.org/package/dot-case
|
---|
| 34 | [downloads-image]: https://img.shields.io/npm/dm/dot-case.svg?style=flat
|
---|
| 35 | [downloads-url]: https://npmjs.org/package/dot-case
|
---|
| 36 | [bundlephobia-image]: https://img.shields.io/bundlephobia/minzip/dot-case.svg
|
---|
| 37 | [bundlephobia-url]: https://bundlephobia.com/result?p=dot-case
|
---|
Note:
See
TracBrowser
for help on using the repository browser.