@danielhaim/titlecaser 1.2.23 → 1.2.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -7
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -4,11 +4,9 @@ Transform any text to proper title case format using popular style guides such a
|
|
|
4
4
|
|
|
5
5
|
## Demo
|
|
6
6
|
|
|
7
|
-
<a target="_blank" href="https://danielhaim1.github.io/
|
|
7
|
+
<a target="_blank" href="https://danielhaim1.github.io/TitleCaser/"><img src="dist/demo.png" width="100%" height="auto"></a>
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
[](https://www.npmjs.com/package/titlecaser)
|
|
11
|
-
[](https://opensource.org/licenses/MIT)
|
|
9
|
+

|
|
12
10
|
|
|
13
11
|
The Language Conventions and Style Module is a comprehensive library designed to help web content developers adhere to the latest style guides and English language conventions. It offers a wide range of features, including support for various style guides such as AP, APA, Chicago, NY Times, Wikipedia, and British styles, and customizable preferences to suit your specific needs.
|
|
14
12
|
|
|
@@ -32,7 +30,7 @@ Command-line interface for building, testing, and minimizing the module
|
|
|
32
30
|
You can install this module via npm:
|
|
33
31
|
|
|
34
32
|
```bash
|
|
35
|
-
npm i @danielhaim/titlecaser
|
|
33
|
+
$ npm i @danielhaim/titlecaser
|
|
36
34
|
```
|
|
37
35
|
|
|
38
36
|
## Usage
|
|
@@ -65,12 +63,12 @@ console.log(output); // 'The Book of Life'
|
|
|
65
63
|
|
|
66
64
|
## Usage in the Browser
|
|
67
65
|
|
|
68
|
-
The function can also be used in a browser environment by including the `
|
|
66
|
+
The function can also be used in a browser environment by including the `titlecaser.browser.js` script in your HTML file:
|
|
69
67
|
|
|
70
68
|
Here's an example of how to use the modulate function:
|
|
71
69
|
|
|
72
70
|
```html
|
|
73
|
-
<script src="./path/to/
|
|
71
|
+
<script src="./path/to/titlecaser.browser.js"></script>
|
|
74
72
|
```
|
|
75
73
|
|
|
76
74
|
After that, the `toTitleCase()` function can be accessed in your JavaScript code like this:
|
package/package.json
CHANGED