format-string-by-pattern
Advanced tools
Comparing version 0.2.0 to 0.2.1
{ | ||
"name": "format-string-by-pattern", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "A module that formats a string based on a pattern", | ||
@@ -5,0 +5,0 @@ "main": "dist/format-string-by-pattern.js", |
@@ -25,2 +25,7 @@ # format-string-by-pattern | ||
// '2015-12-17' | ||
// It works with curry too | ||
const someFormat = formatStringByPattern('00.00'); | ||
someFormat(1234); | ||
// 12.34 | ||
``` | ||
@@ -32,3 +37,3 @@ | ||
### formatStringByPattern(pattern, stringToFormat) | ||
### formatStringByPattern(pattern, valueToFormat) | ||
@@ -43,7 +48,7 @@ Returns a `string`. | ||
#### stringToFormat | ||
#### valueToFormat | ||
Type: `string` | ||
Type: `string` or `number` | ||
A string to be formatted. | ||
A value to be formatted. | ||
@@ -50,0 +55,0 @@ ## License |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
14226
55