alexei/sprintf.js — pull request #17 by ablagoev (2013-08-28 10:05:04+00:00)
Title: Add AMD support issue #10

This pull request adds AMD support (http://requirejs.org/docs/whyamd.html).

Since the library exposes two functions, in AMD context an object is used to wrap around them. Example usage would be:

```js
require(["sprintf/sprintf"], function(Sprintf) {
console.log(Sprintf.sprintf("%2$s %3$s a %1$s", "cracker", "Polly", "wants"));
console.log(Sprintf.vsprintf("The first 4 letters of the english alphabet are: %s, %s, %s and %s", ["a", "b", "c", "d"]));
});
```