template-strings
Advanced tools
Comparing version 0.0.5 to 0.0.6
@@ -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 @@ |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
5605
116
2