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
- Host: GitHub
- URL: https://github.com/featurist/squashy
- Owner: featurist
- Created: 2013-02-10T11:38:30.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2013-02-24T18:28:35.000Z (almost 13 years ago)
- Last Synced: 2025-01-20T11:21:36.258Z (12 months ago)
- Language: JavaScript
- Size: 109 KB
- Stars: 1
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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);
});