@directus/format-title
Advanced tools
Comparing version 2.4.0 to 2.4.1
{ | ||
"name": "@directus/format-title", | ||
"version": "2.4.0", | ||
"version": "2.4.1", | ||
"description": "Custom string formatter that converts any string into [Title Case](http://www.grammar-monster.com/lessons/capital_letters_title_case.htm)", | ||
@@ -42,4 +42,4 @@ "main": "dist/format-title.cjs.js", | ||
"rollup": "^0.64.1", | ||
"rollup-plugin-buble": "^0.19.2", | ||
"rollup-plugin-commonjs": "^9.1.8", | ||
"rollup-plugin-buble": "^0.19.8", | ||
"rollup-plugin-commonjs": "^9.3.4", | ||
"rollup-plugin-node-resolve": "^3.4.0", | ||
@@ -46,0 +46,0 @@ "rollup-plugin-terser": "^1.0.1" |
@@ -1,38 +0,6 @@ | ||
<p align="center"> | ||
<a href="https://directus.io" target="_blank" rel="noopener noreferrer"> | ||
<img src="https://user-images.githubusercontent.com/522079/43096167-3a1b1118-8e86-11e8-9fb2-7b4e3b1368bc.png" width="140" alt="Directus Logo"/> | ||
</a> | ||
</p> | ||
## Title Formatter | ||
<p> </p> | ||
<h1 align="center"> | ||
The All-New Directus 7<br>Future-Proof Headless CMS | ||
</h1> | ||
<h3 align="center"> | ||
<a href="https://directus.io">Website</a> • | ||
<a href="https://docs.directus.io">Docs</a> • | ||
<a href="https://docs.directus.io/api/reference.html">API Reference</a> • | ||
<a href="https://docs.directus.io/app/user-guide.html">User Guide</a> • | ||
<a href="https://directus.app">Demo</a> • | ||
<a href="https://docs.directus.io/supporting-directus.html">Contribute</a> | ||
</h3> | ||
<p> </p> | ||
> _The Directus 7 App has been rebuilt from the ground-up in Vue.js and decoupled from our new "versionless" API. Both can easily be customized and extended to suit your project's needs._ | ||
<p align="center"> | ||
<img src="https://semaphoreci.com/api/v1/directus/app/branches/build/badge.svg"> | ||
</p> | ||
<p> </p> | ||
## 🐰 Directus Title Formatter | ||
Custom string formatter that converts any string into [Title Case](http://www.grammar-monster.com/lessons/capital_letters_title_case.htm) | ||
This package converts any string into title case. This means only using capital letters for the principal words. Articles, conjunctions, and prepositions do not get capital letters unless they start the title | ||
This package converts any string into title case. This means only using capital letters for the principal words. Articles, conjunctions, and prepositions do not get capital letters unless they start or end the title | ||
@@ -45,4 +13,5 @@ | input | output | | ||
| `apple_releases_new_ipad` | Apple Releases New iPad | | ||
| `7-food-trends` | 7 Food Trends | | ||
> Bonus: the package also handles specially-cased words such as iPad, PDFs, or McDonalds | ||
> The package contains a list of words that use some sort of special casing, for example: McDonalds, iPhone, and YouTube. | ||
@@ -67,3 +36,3 @@ ## Installation | ||
## Contributing | ||
If your favorite specially cased word isn't being capitalized properly, [please open an issue](https://github.com/rijkvanzanten/special-case/issues/new) or submit a pull request on [the repo that contains those words](https://github.com/rijkvanzanten/special-case)! | ||
If your favorite specially cased word isn't being capitalized properly, [please open an issue](https://github.com/directus/format-title/issues/new) or submit a pull request! | ||
@@ -70,0 +39,0 @@ <p> </p> |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
108194
44