API Docs for:
Show:

flavors.java Class

Module: flavors
Parent Module: pat

Represents a data formatter that parses format specifiers known from Java's Formatter class (java.util.Formatter).

The module includes a Scanner, a Parser and the format function. It exports itself as a Node module, an AMD module or to the global scope, depending on the environment.

Item Index

Methods

Methods

format

(
  • fstr
  • [args]
)
String

Formats the given arguments described by the given formatstring.

Parameters:

  • fstr String

    Format string

  • [args] Array optional

    Data to be formatted

Returns:

String: Formatted data