
Security News
Deno 2.6 + Socket: Supply Chain Defense In Your CLI
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.
vue-numeral-filter
Advanced tools
Vue.js filter for Numeral.js
Allows for Numeral.js to be used inline in the template section of a component. This can be a convenient way of rendering numerically formatted data in situations where you do not wish to create a computed property.
https://jsfiddle.net/lloydjatkinson/uaq69zjc/
This is the recommended approach.
npm install vue-numeral-filter
import vueNumeralFilterInstaller from 'vue-numeral-filter';
Vue.use(vueNumeralFilterInstaller, { locale: 'en-gb' });
The UMD bundle will automatically install the filters.
<script src="https://cdn.jsdelivr.net/npm/vue-numeral-filter/dist/vue-numeral-filter.min.js"></script>
The numeral filter accepts any of the formats specified in the Numeral.js documentation. For example:
{{ 561739482 | numeral('0,0') }} // => 561,739,482
A number of commonly used predefined filters are also provided for ease-of-use and readability.
| Type | Numeral | Alias | Result |
|---|---|---|---|
| Bytes | {{ 10485760 | numeral('0b') }} | {{ 10485760 | bytes }} | 10 MB |
| Percentage | {{ 0.5567 | numeral('0.[00]%') }} | {{ 0.5567 | percentage }} | 55.67% |
| Thousands Separator | {{ 561739482 | numeral('0,0') }} | {{ 561739482 | separator }} | 561,739,482 |
| Ordinal | {{ 20 | numeral('Oo') }} | {{ 20 | ordinal }} | 20th |
| Abbreviate | {{ 1000000 | numeral('0.0a') }} | {{ 1000000 | abbreviate }} | 1.0m |
| Exponential | {{ 123987.202 | numeral('0.[00]e+0') }} | {{ 123987.202 | exponential }} | 1.24e+5 |
| Currency | {{ 200.42 | numeral('$0,0.00') }} | {{ 200.42 | currency }} | ÂŁ200.42 |
See the list of locales here: https://github.com/adamwdraper/Numeral-js/tree/master/src/locales
FAQs
Vue.js filter for Numeral.js
We found that vue-numeral-filter demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.

Security News
New DoS and source code exposure bugs in React Server Components and Next.js: what’s affected and how to update safely.

Security News
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.