vue-pluralize

Handy Pluralize filters for your Vue project
185,183 6
Install
npm install vue-pluralize
Latest Version:0.0.2
License:MIT
Last Updated:Apr 9, 2026
Links: GitHub  ·  npm
Maintainer: jcroxford

vue-pluralize

npm version Build Status Monthly Downloads License: MIT

Handy Pluralize filters for your Vue project.

Installation

Install via NPM...

$ npm install vue-pluralize
// or
$ yarn add vue-pluralize

Import and use like so:

import VuePluralize from 'vue-pluralize'

Vue.use(VuePluralize)

Usage

Simply set pluralize as the filtering function and you're good to go. At least one argument is expected, which is the number of items.

<span>{{ 'user' | pluralize(10) }}</span>
<!-- renders -->
<span>users</span>

this.$pluralize

vue-pluralize attaches the Pluralize instance to your Vue app as this.$pluralize.

This allows you to call Pluralize from the script portion of your Vue component.

const usersCountLabel = this.$pluralize('user', 10);
// usersCountLabel contains "users"

You can add new rules by adding them to the root Pluralize instance.

Related Packages

vue-sensitive

Handy Text Weaken filters plugins for your Vue.js project

1,455 0
vue-moment

Handy Moment.js filters for your Vue.js project

3,393,663 1,305
vue-moment-tz

Handy Moment-timezone.js filters for your Vue.js project.

14,407 0
@rah-emil/vue-moment

Handy Moment.js filters for your Vue.js project

13,540 1
vue-moment-v3

vue-moment for vue.js v3

9,291 0

Version History

Version Released License
0.0.2 MIT
0.0.1 MIT