Comparing version 0.2.2 to 0.2.3
export default (Vue) => { | ||
Vue.filter('morph-capitalize', (value) => { | ||
if(!value) return; | ||
return capitalize(value); | ||
@@ -4,0 +5,0 @@ }); |
export default (Vue) => { | ||
Vue.filter('morph-chop', (value, length, location) => { | ||
if(!value) return; | ||
return chop(value, length, location); | ||
@@ -4,0 +5,0 @@ }); |
@@ -5,2 +5,3 @@ import currencies from '../../lib/currencies'; | ||
Vue.filter('morph-currency', (value, code, useSymbol) => { | ||
if(!value) return; | ||
return sandwich(value, code, useSymbol); | ||
@@ -7,0 +8,0 @@ }); |
@@ -5,2 +5,3 @@ import * as moment from 'moment'; | ||
Vue.filter('morph-date', (value, format) => { | ||
if(!value) return; | ||
return morphDate(value, format); | ||
@@ -7,0 +8,0 @@ }); |
export default (Vue) => { | ||
Vue.filter('morph-json', (value, indent) => { | ||
if(!value) return; | ||
return json(value, indent); | ||
@@ -4,0 +5,0 @@ }); |
export default (Vue) => { | ||
Vue.filter('morph-lowercase', (value) => { | ||
if(!value) return; | ||
return lowercase(value); | ||
@@ -4,0 +5,0 @@ }); |
export default (Vue) => { | ||
Vue.filter('morph-placeholder', (value, placeholder) => { | ||
if(!value) return; | ||
return replace(value, placeholder); | ||
@@ -4,0 +5,0 @@ }); |
export default (Vue) => { | ||
Vue.filter('morph-replace', (value, replacee, replacer) => { | ||
if(!value) return; | ||
return replace(value, replacee, replacer); | ||
@@ -4,0 +5,0 @@ }); |
export default (Vue) => { | ||
Vue.filter('morph-reverse', (value) => { | ||
if(!value) return; | ||
return reverse(value); | ||
@@ -4,0 +5,0 @@ }); |
@@ -15,2 +15,3 @@ const corpus = { | ||
Vue.filter('morph-sandwich', (value, start, end) => { | ||
if(!value) return; | ||
return sandwich(value, start, end); | ||
@@ -17,0 +18,0 @@ }); |
export default (Vue) => { | ||
Vue.filter('morph-truncate', (value, length) => { | ||
if(!value) return; | ||
return truncate(value, length); | ||
@@ -4,0 +5,0 @@ }); |
export default (Vue) => { | ||
Vue.filter('morph-uppercase', (value) => { | ||
if(!value) return; | ||
return value.toUpperCase(); | ||
@@ -4,0 +5,0 @@ }); |
@@ -6,3 +6,3 @@ { | ||
"name": "morphling", | ||
"version": "0.2.2", | ||
"version": "0.2.3", | ||
"description": "A collection of VueJs filters.", | ||
@@ -9,0 +9,0 @@ "main": "index.js", |
@@ -9,8 +9,8 @@ # Mophling | ||
- [Installation](#Installation) | ||
- [Usage](#Usage) | ||
- [Filters](#Filters) | ||
- [Directives](#Directives) | ||
- [Updates](#Updates) (New updates as of July 29, 2017 PHT) | ||
- [Debug](#Debug) | ||
- [Installation](#installation) | ||
- [Usage](#usage) | ||
- [Filters](#filters) | ||
- [Directives](#directives) | ||
- [Updates](#updates) (New updates as of July 29, 2017 PHT) | ||
- [Debug](#debug) | ||
- [Contributing](https://github.com/jofftiquez/morphling/blob/master/CONTRIBUTING.md) | ||
@@ -17,0 +17,0 @@ - [License](https://github.com/jofftiquez/morphling/blob/master/LICENSE) |
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
51601
1681