Socket
Socket
Sign inDemoInstall

create-html-template

Package Overview
Dependencies
15
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.2 to 1.0.3

2

lib/app.js

@@ -10,3 +10,3 @@ const mkdir = require("mkdirp");

fs.writeFileSync(`./${result.directory}/${result.templatename}.html`,"<p>your template goes here</p>");
fs.writeFileSync(`./${result.directory}/script.js`,`\nvar link =document.querySelector('link[href=\"./${result.directory}/${result.templatename}.html\"]');\nvar content=link.import;\nvar el =content.querySelector('template');document.body.appendChild(el.cloneNode(true));`);
fs.writeFileSync(`./${result.directory}/script.js`,`\nvar link =document.querySelector('link[href=\"./${result.directory}/${result.templatename}.html\"]');\nvar content=link.import;\nvar el =content.querySelector('#root');document.body.appendChild(el.cloneNode(true));`);

@@ -13,0 +13,0 @@ })

{
"name": "create-html-template",
"version": "1.0.2",
"version": "1.0.3",
"description": "this create simple html template",

@@ -5,0 +5,0 @@ "main": "./lib/app.js",

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc