regular-utils

regular utils

Usage no npm install needed!

<script type="module">
  import regularUtils from 'https://cdn.skypack.dev/regular-utils';
</script>

README

regular-utils

npm dm CircleCI branch Coveralls branch

regular utils, containing regular filters, directives and animations

Table of Contents

Filters

price

{ '12345678' | price } // '12,345,678'
{ 12345678 | price } // '12,345,678'
{ 12345678.9 | price } // '12,345,678.9'

timeformat

{ 1477962600000 | timeformat: 'YYYY-M-D HH:mm:ss' } // '2016-11-1 09:10:00'

See more supported tokens

Directives

countdown

<div r-countdown="{ endTime }" format="[D]天[H]时[M]分[S]秒[MS]"></div>

License

MIT © fengzilong