detokenizer
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "detokenizer", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Replace tokens in a string.", | ||
@@ -5,0 +5,0 @@ "author": "tomasklaen", |
@@ -12,3 +12,3 @@ # detokenizer | ||
detokenize('Hello {name}!', {'{name}': 'John'); | ||
detokenize('Hello {name}!', {'{name}': 'John'}); | ||
// => 'Hello John!' | ||
@@ -28,3 +28,3 @@ ``` | ||
Async support: | ||
Async: | ||
@@ -47,5 +47,5 @@ ```ts | ||
Token escaping support: | ||
Token escaping: | ||
*Add escape sequences to be replaced out as last tokens. (use dynamic tokens for more advanced replacing)* | ||
*Add escape sequences to be replaced out as last tokens. (use dynamic tokens (regular expressions) for more advanced replacing)* | ||
@@ -86,3 +86,3 @@ ```ts | ||
Or if you want the dynamic tokens support, a an array of map like entries: | ||
Or if you want the dynamic tokens support, an array of map like entries: | ||
@@ -89,0 +89,0 @@ ```ts |
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
10922