@directus/format-title
Advanced tools
Comparing version 2.1.1 to 2.2.0
@@ -91,2 +91,3 @@ 'use strict'; | ||
'USB', | ||
'VIP', | ||
'W3C', | ||
@@ -137,4 +138,2 @@ 'WYSIWYG', | ||
if (index === 0) return str; | ||
if (prepositions.includes(lowercaseStr)) return lowercaseStr; | ||
@@ -141,0 +140,0 @@ if (conjunctions.includes(lowercaseStr)) return lowercaseStr; |
@@ -87,2 +87,3 @@ import decamelize from 'decamelize'; | ||
'USB', | ||
'VIP', | ||
'W3C', | ||
@@ -133,4 +134,2 @@ 'WYSIWYG', | ||
if (index === 0) return str; | ||
if (prepositions.includes(lowercaseStr)) return lowercaseStr; | ||
@@ -137,0 +136,0 @@ if (conjunctions.includes(lowercaseStr)) return lowercaseStr; |
{ | ||
"name": "@directus/format-title", | ||
"version": "2.1.1", | ||
"version": "2.2.0", | ||
"description": "Custom string formatter that converts any string into [Title Case](http://www.grammar-monster.com/lessons/capital_letters_title_case.htm)", | ||
@@ -39,6 +39,6 @@ "main": "dist/format-title.cjs.js", | ||
"rollup-plugin-buble": "^0.19.2", | ||
"rollup-plugin-commonjs": "^9.1.5", | ||
"rollup-plugin-node-resolve": "^3.3.0", | ||
"rollup-plugin-commonjs": "^9.1.8", | ||
"rollup-plugin-node-resolve": "^3.4.0", | ||
"rollup-plugin-terser": "^1.0.1" | ||
} | ||
} |
@@ -1,2 +0,35 @@ | ||
# format-title | ||
<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> | ||
<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) | ||
@@ -35,6 +68,8 @@ | ||
## License | ||
<p> </p> | ||
MIT License | ||
---- | ||
Copyright (c) 2018 RANGER Studio | ||
<p align="center"> | ||
Directus Thumbnailer is released under the <a href="https://opensource.org/licenses/MIT">MIT</a> license. Directus (proper) is released under the <a href="http://www.gnu.org/copyleft/gpl.html">GPLv3</a> license. <a href="http://rangerstudio.com">RANGER Studio LLC</a> owns all Directus trademarks and logos on behalf of our project's community. Copyright © 2006-2018, <a href="http://rangerstudio.com">RANGER Studio LLC</a>. | ||
</p> |
Sorry, the diff of this file is too big to display
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
108362
75
0