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

html-template-tag

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

html-template-tag - npm Package Compare versions

Comparing version 3.2.0 to 4.0.0

dist/index.cjs.js

61

package.json
{
"name": "html-template-tag",
"version": "3.2.0",
"version": "4.0.0",
"description": "ES6 Tagged Template for compiling HTML template strings.",
"main": "dist/index.js",
"types": "index.d.ts",
"jsnext:main": "src/index.js",
"module": "src/index.js",
"main": "dist/index.cjs.js",
"module": "dist/index.esm.js",
"types": "dist/index.d.ts",
"files": [
"dist/index.cjs.js",
"dist/index.esm.js",
"dist/index.d.ts"
],
"scripts": {
"prebuild": "npm run clean",
"build": "babel src/index.js -o dist/index.js",
"postbuild": "uglifyjs dist/index.js -o dist/index.js",
"clean": "rm -rf dist && mkdir dist",
"coverage:check": "istanbul check-coverage --statements 100 --branches 100 --functions 100 --lines 100",
"coverage:report": "cat ./coverage/lcov.info | codecov",
"test": "istanbul cover -x *.test.js _mocha -- -R spec --require babel/register",
"test:watch": "mocha -w --require babel/register",
"preversion": "npm run test && npm run coverage:check",
"version": "npm run build && git add -A dist",
"prepare": "husky install",
"type:check": "tsc --noEmit",
"format": "prettier --write --ignore-unknown {src,test}/*",
"format:check": "prettier --check {src,test}/*",
"test": "jest",
"prebuild": "rimraf dist && mkdir dist",
"build": "npm run build:types && npm run build:lib",
"build:types": "tsc --declaration --emitDeclarationOnly --outDir dist",
"build:lib": "rollup -c",
"build:cjs": "tsc --module commonjs --target es5 --outDir dist/cjs",
"postversion": "git push && git push --tags"

@@ -24,3 +28,3 @@ },

"type": "git",
"url": "https://github.com/AntonioVdlC/html-template-tag.git"
"url": "git+https://github.com/AntonioVdlC/html-template-tag.git"
},

@@ -35,3 +39,3 @@ "keywords": [

],
"author": "Antonio Villagra De La Cruz <antonio.villagra.de.la.cruz@gmail.com> (http://antoniovdlc.me/)",
"author": "Antonio Villagra De La Cruz",
"license": "MIT",

@@ -41,13 +45,22 @@ "bugs": {

},
"homepage": "https://github.com/AntonioVdlC/html-template-tag#readme",
"devDependencies": {
"babel": "^5.8.29",
"chai": "^3.4.0",
"codecov.io": "^0.1.6",
"istanbul": "^0.4.0",
"mocha": "^6.0.2",
"uglify-js": "^2.5.0"
"@babel/core": "^7.13.10",
"@babel/preset-env": "^7.13.10",
"@babel/preset-typescript": "^7.13.0",
"@rollup/plugin-typescript": "^8.2.0",
"@types/jest": "^26.0.20",
"babel-jest": "^26.6.3",
"husky": "^5.1.3",
"jest": "^26.6.3",
"prettier": "^2.2.1",
"rimraf": "^3.0.2",
"rollup": "^2.41.4",
"rollup-plugin-terser": "^7.0.2",
"tslib": "^2.1.0",
"typescript": "^4.2.3"
},
"dependencies": {
"html-es6cape": "^1.0.5"
"html-es6cape": "^2.0.0"
}
}
# html-template-tag
[![version](https://img.shields.io/npm/v/html-template-tag.svg)](http://npm.im/html-template-tag)
[![Travis](https://img.shields.io/travis/AntonioVdlC/html-template-tag.svg?branch=master)](https://travis-ci.org/AntonioVdlC/html-template-tag)
[![Codecov](https://img.shields.io/codecov/c/github/AntonioVdlC/html-template-tag.svg)](https://codecov.io/github/AntonioVdlC/html-template-tag)
[![issues](https://img.shields.io/github/issues-raw/antoniovdlc/html-template-tag.svg)](https://github.com/AntonioVdlC/html-template-tag/issues)

@@ -20,6 +18,2 @@ [![downloads](https://img.shields.io/npm/dt/html-template-tag.svg)](http://npm.im/html-template-tag)

*- or -*
Download the file `src/index.js` and add it to your ES6 project.
## Usage

@@ -33,3 +27,3 @@

var html = require("html-template-tag");
// - or - import html from "html-template-tag";
// - or - import { html } from "html-template-tag";

@@ -45,3 +39,3 @@ var name = `Antonio`;

var html = require("html-template-tag");
// - or - import html from "html-template-tag";
// - or - import { html } from "html-template-tag";

@@ -69,4 +63,2 @@ var names = ["Antonio", "Megan", "/><script>alert('xss')</script>"];

### HTML Template Pre-Compiling

@@ -78,3 +70,3 @@

var html = require("html-template-tag");
// - or - import html from "html-template-tag";
// - or - import { html } from "html-template-tag";

@@ -81,0 +73,0 @@ var data = {

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