Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.
/ dsf Public archive

Decent String Formatter for Javascript

License

Notifications You must be signed in to change notification settings

Bynder/dsf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DSF

Decent String Formatter for Javascript

Installation

Install with bower
bower install DecentStringFormatter

or install with NPM
npm install decentstringformatter

Usage

var translation = "Created on {}, changed on {} (by {}).";
var formatted = translation.dsf("some date", "09-09-2015", "User");

or

var translation = "Created on {created_on}, changed on {updated_on} (by {updated_by}";
var formatted = translation.dsf({
    'created_on': 'some date',
    'updated_on': '09-09-2015',
    'updated_by': 'User'
});

About

Decent String Formatter for Javascript

Resources

License

Stars

Watchers

Forks

Packages

No packages published