+1
-1
@@ -34,2 +34,2 @@ exports.Format = function(s, m) { | ||
| return output; | ||
| } | ||
| }; |
+1
-1
| { | ||
| "name": "stringf", | ||
| "version": "1.0.1", | ||
| "version": "1.0.2", | ||
| "description": "Dead simple string formatter", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
+18
-0
@@ -36,2 +36,20 @@ # Sringf [](https://opensource.org/licenses/Apache-2.0) [](https://badge.fury.io/js/stringf) | ||
| # Test | ||
| ## Go | ||
| ```sh | ||
| go test | ||
| ``` | ||
| ## Js | ||
| ```sh | ||
| npm test | ||
| ``` | ||
| # Testcase | ||
| | String | Parameter map | Output | | ||
| |-----------|---------------|-----------| | ||
| | hi #name | name: `Thanh` | hi Thanh | | ||
| | hi #num | num: `2108` | hi 2108 | | ||
| | ##abc | abc: `bcd` | #abc | | ||
| # Pseudocode to implement in your own language | ||
@@ -38,0 +56,0 @@ |
5428
5.46%85
26.87%