vue-string-filter
TypeScript icon, indicating that this package has built-in type declarations

1.2.0 • Public • Published

vue-string-filter

License Github Issue GitHub Fork GitHub Star

version downloads monthly downloads

Travis codecov

✂️ Lightweight Vue 2 String Manipulation Filter

Demo

https://mazipan.github.io/vue-string-filter/

Available Filter

  • uppercase
  • lowercase
  • capitalize
  • titlecase
  • slug
  • truncate
  • cut

Download

NPM :

npm install vue-string-filter

Yarn :

yarn add vue-string-filter

Sample Usage

Use Plugins :

import VueStringFilter from 'vue-string-filter'
Vue.use(VueStringFilter)

Use in View :

<span>{{ stringWillFormatted | uppercase }}</span>
<span>{{ stringWillFormatted | lowercase }}</span>
<span>{{ stringWillFormatted | capitalize }}</span>
<span>{{ stringWillFormatted | titlecase }}</span>
<span>{{ stringWillFormatted | slug }}</span>
<span>{{ stringWillFormatted | truncate(10) }}</span>
<span>{{ stringWillFormatted | cut(10) }}</span>

Contributing

If you'd like to contribute, head to the contributing guidelines. Inside you'll find directions for opening issues, coding standards, and notes on development.

Hope this will be useful for you all.

Contact Me :

Email Website Facebook

Twitter Linkedin Slideshare

Package Sidebar

Install

npm i vue-string-filter@1.2.0

Version

1.2.0

License

MIT

Last publish

Collaborators

  • irfan.maulana