Latest Threat ResearchGlassWorm Loader Hits Open VSX via Developer Account Compromise.Details
Socket
Book a DemoInstallSign in
Socket

html-inlinify

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-inlinify

Inline local assets referenced in an HTML document.

Source
npmnpm
Version
0.1.1
Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

html-inlinify

Inline local assets referenced in an HTML document.

npm npm Travis David npm

Installation

npm install html-inlinify

Usage

This browserify transform statically evaluates inline-html expressions to inline local assets referenced in an HTML document and bundle the results.

This:

browserify -t hmtl-inlinify index.js > bundle.js

Turns this index.js:

var inlineHtml = require('inline-html');
inlineHtml('./index.html').then(function (html) {
  ...
});

Into this bundle.js:

Promise.resolve('data:...').then(function (html) {
  ...
});

Keywords

browserify-transform

FAQs

Package last updated on 06 Aug 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts