Skip to content

Latest commit

 

History

History
31 lines (20 loc) · 487 Bytes

File metadata and controls

31 lines (20 loc) · 487 Bytes

String formatting

Note: that's better to use string formatting instead of string interpolation

Syntax

format(template, arg0, arg1, ...)

Example:

format('This is my {} project. project name is {}.', 'first', 'Example-project')

Result:

This is my first project. project name is Example-project.

Languages

  • Javascript

string-format

$ npm install string-format