Socket
Socket
Sign inDemoInstall

create-html-template

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

create-html-template - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

2

lib/app.js

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

mkdir(`./${result.directory}`);
fs.writeFileSync(`./${result.directory}/${result.templatename}.html`,"<p>your template goes here</p>");
fs.writeFileSync(`./${result.directory}/${result.templatename}.html`,"<div id=\"root\">your template goes here</div>");
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));`);

@@ -12,0 +12,0 @@

{
"name": "create-html-template",
"version": "1.0.3",
"version": "1.0.4",
"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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc