Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

detokenizer

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

detokenizer - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

2

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

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