Content-Length: 256461 | pFad | http://github.com/pixelspring/VueFilters

74 GitHub - pixelspring/VueFilters: A collection of useful filters for Vue 2
Skip to content

pixelspring/VueFilters

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 Cannot retrieve latest commit at this time.

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Vue Filters

Percentage:

Converts a value to a percentage

Vue.filter('percentageFormat', require('./filters/percentageFormatter'));

Default (2 decimal places)
{{ amount | percentageFormat }}

Specify decimal places
{{ amount | percentageFormat(4) }}

Human Readable File Sizes

Converts bytes to human readable file sizes (KB, MB, GB etc)

Vue.filter('humanFileSize', require('./filters/humanFileSize'));

Default
{{ filesizeInBytes | humanFileSize }}

Truncate Text

Truncate text to a given length & append ellipsis

Vue.filter('truncateText', require('./filters/truncateText'));

Default
{{ textToTruncate | truncateText(100) }}

Slugify

Convert text to slug format

Vue.filter('slugify', require('./filters/slugifyText'));

Default
{{ textToSlugify | slugify }}

HTML Escape/Unescape

Escape or Unescape HTML

Vue.filter('html', require('./filters/html'));

Escape
{{ htmlToEscape | html('escape') }}

Unescape
{{ htmlToUnescape | html('unescape') }}

Releases

No releases published

Packages

No packages published








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/pixelspring/VueFilters

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy