vuejs-filters

0.1.12 • Public • Published

Vue Filters

import { money, date, string } from 'vue-filters' import { { undercase, reverse, ucfirst } from money } from money

{{ v }} // Name {{ v | ellipsis }} // Name... {{ v | capitalize }} // NAME {{ v | undercase }} // name {{ v | ucfirst }} // Name {{ v | revese }} // eman {{ v | revese | capitalize | ellipsis }} // emaN...

{{ v }} // [1, 2, 3] {{ v | reverse }} // [3, 2, 1] {{ v | first }} 3

{{ amount }} 123444 {{ amount | money }} // 123, 444 {{ amount | money | prefix('$') }} // $ 123,444

{{ v | text }} // 'name' {{ v | text | truncate(1,3) }} // ame

{{ v }} // 1234 {{ v | toInt }} // 1234 {{ v | round(2) }} 12 {{ v | money}}

Package Sidebar

Install

npm i vuejs-filters

Weekly Downloads

25

Version

0.1.12

License

MIT

Last publish

Collaborators

  • samayo