# updraftcentral/trunk/js/sprintf/angular-sprintf.js

UpdraftCentral Dashboard, version trunk. 25 lines.

- Page: https://pluginprobe.com/plugins/updraftcentral/trunk/code/js/sprintf/angular-sprintf.js
- Raw: https://pluginprobe.com/plugins/updraftcentral/trunk/raw/js/sprintf/angular-sprintf.js
- Modified: 2018-12-19T08:20:44+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/updraftcentral/trunk/code/js/sprintf/angular-sprintf.js#L10-L20`.

```javascript
/* global angular, sprintf, vsprintf */

!function() {
    'use strict'

    angular.
        module('sprintf', []).
        filter('sprintf', function() {
            return function() {
                return sprintf.apply(null, arguments)
            }
        }).
        filter('fmt', ['$filter', function($filter) {
            return $filter('sprintf')
        }]).
        filter('vsprintf', function() {
            return function(format, argv) {
                return vsprintf(format, argv)
            }
        }).
        filter('vfmt', ['$filter', function($filter) {
            return $filter('vsprintf')
        }])
}(); // eslint-disable-line

```
