Socket
Socket
Sign inDemoInstall

decentstringformatter

Package Overview
Dependencies
0
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

decentstringformatter


Version published
Maintainers
1
Install size
6.97 kB
Created

Readme

Source

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'
});

Keywords

FAQs

Last updated on 26 Jan 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc