Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
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 0.2.0 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc