🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

format-string-by-pattern

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

format-string-by-pattern - npm Package Compare versions

Comparing version

to
0.2.1

2

package.json
{
"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