1.0.0 • Published 6 years ago
@zcorky/string-format v1.0.0
Data Flow Stream
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');
1.0.0
6 years ago