Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@mathewparet/vue-common-filters

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mathewparet/vue-common-filters

A Vue.js set of common filters

  • 1.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

@mathewparet/vue-common-filters

A Vue.js set of filters that can commonly used

Installation

npm i @mathewparet/fvue-common-filters

Usage

Vue Initialization

import Vue from 'vue';
import filters from "@mathewparet/vue-common-filters";
Vue.use(filters);

Vue Usage

<div> Trimmed name is {{name | trim(15)}}</div>

Available Filters

trim()

ParameterDescriptionRequred?Default
max_lengthMaximum length after which text should be trimmedNo15
leadThe indicator text that shows text was trimmedNo...

dateFormat()

ParameterDescriptionRequired?Default
formatThe date format to be converted to. More formats can be found in moment's API. (https://momentjs.com/docs/#/parsing/string-format)Nollll
current_formatThe format in which the current date is fed inNoYYYY-MM-DDTHH:mm:ssZ

FAQs

Package last updated on 24 Dec 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc