Skip to content

zcorky/string-format

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

String-format

@DEPRIATED use @zodash/format instead of

What & Why ?

  • Like python format, I need format for js.

How to

import 'string-format';

// 1 Format Object
'Author: {author}, From: ${from}'.format({ author: 'Zero', from: 'China' });

// 2 Format Array
'Author: {author}, From: ${from}'.format(['Zero', 'China']);

// 3 Format String
'Author: {author}, From: ${from}'.format('Zero', 'China');

Releases

No releases published

Packages

No packages published