ember-string-fmt

1.0.0 • Public • Published

ember-string-fmt

Build Status

The string interpolation function formally known as Ember.String.fmt.

Ember.String.fmt has been depreciated in favor of ES6 String Templates which should be used in most cases. If you construct string templates dynamically, you may find fmt useful.

Installation

ember install ember-string-fmt

Usage

import fmt from 'ember-string-fmt';
 
let name = 'Alex';
let greeting = fmt('hi %@', name); //=> 'hi Alex'

Repository Installation

  • git clone this repository
  • npm install
  • bower install

Running

Running Tests

  • npm test (Runs ember try:testall to test your addon against multiple Ember versions)
  • ember test
  • ember test --server

Building

  • ember build

For more information on using ember-cli, visit http://www.ember-cli.com/.

Readme

Keywords

Package Sidebar

Install

npm i ember-string-fmt

Weekly Downloads

277

Version

1.0.0

License

MIT

Unpacked Size

4.74 kB

Total Files

6

Last publish

Collaborators

  • patocallaghan
  • gavinjoyce
  • 22a