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

template-strings

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

template-strings - npm Package Compare versions

Comparing version 0.0.5 to 0.0.6

2

package.json

@@ -25,3 +25,3 @@ {

},
"version": "0.0.5"
"version": "0.0.6"
}

@@ -34,3 +34,3 @@ # Template Strings

const html = String.template(template, json);
const html = stringTemplator(template, json);

@@ -47,8 +47,12 @@ console.log(html);

const json = { name: 'World' };
const html = stringTemplator(template, json);
const div = document.createElement('div');
const html = String.template(template, json);
div.innerHTML = html;
console.log(html);
document.body.appendChild(div);
```
( Live demo: https://codepen.io/enjikaka/pen/wRNNpr?editors=0010 )
## Why?

@@ -55,0 +59,0 @@

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