| CARVIEW |
Select Language
HTTP/2 302
server: nginx
date: Wed, 24 Dec 2025 03:41:42 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20090329085156
location: https://web.archive.org/web/20090329085156/https://github.com/jcoglan/packr/tree
server-timing: captures_list;dur=0.741324, exclusion.robots;dur=0.054070, exclusion.robots.policy;dur=0.041535, esindex;dur=0.010573, cdx.remote;dur=20.230773, LoadShardBlock;dur=181.115314, PetaboxLoader3.datanode;dur=88.474726
x-app-server: wwwb-app223-dc8
x-ts: 302
x-tr: 233
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
set-cookie: wb-p-SERVER=wwwb-app223; path=/
x-location: All
x-as: 14061
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
HTTP/2 301
server: nginx
date: Wed, 24 Dec 2025 03:41:43 GMT
content-type: text/html; charset=utf-8
content-length: 109
x-archive-orig-server: nginx/0.6.26
x-archive-orig-date: Sun, 29 Mar 2009 08:51:55 GMT
x-archive-orig-connection: close
x-archive-orig-status: 301 Moved Permanently
location: https://web.archive.org/web/20090329085156/https://github.com/jcoglan/packr/tree/master
x-archive-orig-x-runtime: 13ms
x-archive-orig-cache-control: no-cache
x-archive-orig-content-length: 109
cache-control: max-age=1800
memento-datetime: Sun, 29 Mar 2009 08:51:56 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate"
content-security-policy: default-src 'self' 'unsafe-eval' 'unsafe-inline' data: blob: archive.org web.archive.org web-static.archive.org wayback-api.archive.org athena.archive.org analytics.archive.org pragma.archivelab.org wwwb-events.archive.org
x-archive-src: 52_8_20090329075436_crawl103-c/52_8_20090329085115_crawl101.arc.gz
server-timing: captures_list;dur=0.637104, exclusion.robots;dur=0.019616, exclusion.robots.policy;dur=0.008122, esindex;dur=0.010565, cdx.remote;dur=22.635143, LoadShardBlock;dur=154.583716, PetaboxLoader3.datanode;dur=265.915786, load_resource;dur=201.298869, PetaboxLoader3.resolve;dur=51.786698
x-app-server: wwwb-app223-dc8
x-ts: 301
x-tr: 403
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
x-location: All
x-as: 14061
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
HTTP/2 200
server: nginx
date: Wed, 24 Dec 2025 03:41:43 GMT
content-type: text/html; charset=utf-8
x-archive-orig-server: nginx/0.6.26
x-archive-orig-date: Sun, 29 Mar 2009 08:51:56 GMT
x-archive-orig-connection: close
x-archive-orig-status: 200 OK
x-archive-orig-x-runtime: 173ms
x-archive-orig-etag: "8dd882543d2b19d4ca4960cfa48bbbb2"
x-archive-orig-cache-control: private, max-age=0, must-revalidate
x-archive-orig-content-length: 23290
x-archive-guessed-content-type: text/html
x-archive-guessed-charset: utf-8
memento-datetime: Sun, 29 Mar 2009 08:51:56 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate"
content-security-policy: default-src 'self' 'unsafe-eval' 'unsafe-inline' data: blob: archive.org web.archive.org web-static.archive.org wayback-api.archive.org athena.archive.org analytics.archive.org pragma.archivelab.org wwwb-events.archive.org
x-archive-src: 52_8_20090329075436_crawl103-c/52_8_20090329085115_crawl101.arc.gz
server-timing: captures_list;dur=0.512297, exclusion.robots;dur=0.016151, exclusion.robots.policy;dur=0.007465, esindex;dur=0.008929, cdx.remote;dur=32.038804, LoadShardBlock;dur=78.010236, PetaboxLoader3.datanode;dur=122.140821, load_resource;dur=91.497650, PetaboxLoader3.resolve;dur=31.938844
x-app-server: wwwb-app223-dc8
x-ts: 200
x-tr: 251
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
x-location: All
x-as: 14061
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
content-encoding: gzip
jcoglan's packr at master - GitHub
This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
| Description: | Ruby version of Dean Edwards' Packer |
| Homepage: | https://blog.jcoglan.com/packr/ |
| Clone URL: |
git://github.com/jcoglan/packr.git
Give this clone URL to anyone.
git clone git://github.com/jcoglan/packr.git
|
packr /
| name | age | message | |
|---|---|---|---|
| |
History.txt | Sun Feb 22 03:10:47 -0800 2009 | Updating version info, copyright, changelog. [jcoglan] |
| |
Manifest.txt | Thu Aug 28 12:29:20 -0700 2008 | Fixing variable protection and private variable... [jcoglan] |
| |
README.txt | Sat Feb 21 16:12:46 -0800 2009 | Adding info on 'protect' option to README. [jcoglan] |
| |
Rakefile | Sun Jul 13 09:54:38 -0700 2008 | This is not a Rails plugin anymore, only a gem.... [jcoglan] |
| |
bin/ | Thu Jul 17 05:09:06 -0700 2008 | Refactoring variable protection. Names are pass... [jcoglan] |
| |
lib/ | Sun Feb 22 03:10:47 -0800 2009 | Updating version info, copyright, changelog. [jcoglan] |
| |
test/ | Fri Nov 14 04:17:16 -0800 2008 | Fixing conditional comments bug in Minifier. [jcoglan] |
= PackR * https://github.com/jcoglan/packr * https://dean.edwards.name/packer/ * https://base2.googlecode.com == Description PackR is a Ruby version of Dean Edwards' JavaScript compressor. == Features * Whitespace and comment removal * Compression of local variable names * Compression and obfuscation of 'private' (_underscored) identifiers * Base-62 encoding == Synopsis To call from within a Ruby program: require 'rubygems' require 'packr' code = File.read('my_script.js') compressed = Packr.pack(code) File.open('my_script.min.js', 'wb') { |f| f.write(compressed) } This method takes a number of options to control compression, for example: compressed = Packr.pack(code, :shrink_vars => true, :base62 => true) The full list of available options is: * <tt>:shrink_vars</tt> -- set to +true+ to compress local variable names * <tt>:private</tt> -- set to +true+ to obfuscate 'private' identifiers, i.e. names beginning with a single underscore * <tt>:base62</tt> -- encode the program using base 62 * <tt>:protect</tt> -- an array of variable names to protect from compression, e.g. compressed = Packr.pack(code, :shrink_vars => true, :protect => %w[$super self]) To call from the command line (use <tt>packr --help</tt> to see available options): packr my_script.js > my_script.min.js == Notes This program is not a JavaScript parser, and rewrites your files using regular expressions. Be sure to include semicolons and braces everywhere they are required so that your program will work correctly when packed down to a single line. By far the most efficient way to serve JavaScript over the web is to use PackR with the --shrink-vars flag, combined with gzip compression. If you don't have access to your server config to set up mod_deflate, you can generate gzip files using (on Unix-like systems): packr -s my-file.js | gzip > my-file.js.gz You can then get Apache to serve the files by putting this in your .htaccess file: AddEncoding gzip .gz RewriteCond %{HTTP:Accept-encoding} gzip RewriteCond %{HTTP_USER_AGENT} !Safari RewriteCond %{REQUEST_FILENAME}.gz -f RewriteRule ^(.*)$ $1.gz [QSA,L] If you really cannot serve gzip files, use the --base62 option to further compress your code. This mode is at its best when compressing large files with many repeated tokens. The --private option can be used to stop other programs calling private methods in your code by renaming anything beginning with a single underscore. Beware that you should not use this if the generated file contains 'private' methods that need to be accessible by other files. Also know that all the files that access any particular private method must be compressed together so they all get the same rewritten name for the private method. == Requirements * Rubygems * Oyster (installed automatically) == Installation sudo gem install packr -y == License (The MIT License) Copyright (c) 2004-2009 Dean Edwards, James Coglan Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
This feature is coming soon. Sit tight!







