Global

Members

<static> utils/logger :utils/logger.Logger

The system global, cross-platform logger

Type:
Source:

Methods

require("strings/format")(format, args) → {string}

Format a string quickly and easily using .net style format strings

Parameters:
Name Type Argument Description
format string

A string format like "Hello {0}, now take off your {1}!"

args ? <repeatable>

One argument per {} in the string, positionally replaced

Source:
Returns:
Type
string
Examples
var strings = require("papyrus/strings");
var s = strings.format("Hello {0}", "Madame Vastra");
// s = "Hello Madame Vastra"
<span>
    <%= strings.format("Hello {0}", "Madame Vastra") %>
</span>
DocStrap Copyright © 2012-2013 The contributors to the JSDoc3 and DocStrap projects.
Documentation generated by JSDoc 3.3.0-alpha5 on Mon Jul 7th 2014 using the DocStrap template.