An open API service indexing awesome lists of open source software.

https://github.com/featurist/squashy

Packs HTML, inlining javascripts and stylesheets
https://github.com/featurist/squashy

Last synced: 5 months ago
JSON representation

Packs HTML, inlining javascripts and stylesheets

Awesome Lists containing this project

README

          

# Squashy

Packs HTML by inlining javascripts and stylesheets

For those rare times when you want to save a web page and it's JavaScript and CSS assets as a single file.

## Install

npm install squashy

## Usage

### Command Line

squashy

### PogoScript

inlined html = require 'squashy'.squash 'http://www.featurist.co.uk' !
console.log (inlined html)

### JavaScript

require('squashy').squash('http://www.featurist.co.uk', function(err, inlinedHtml) {
if (err) {
throw err;
}
console.log(inlinedHtml);
});