mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
feature(pako) rm
This commit is contained in:
parent
8898ca54a8
commit
a9223e5336
14 changed files with 0 additions and 13568 deletions
|
|
@ -21,17 +21,6 @@
|
|||
"local": "/socket.io/socket.io.js",
|
||||
"remote": "//cdn.socket.io/socket.io-{{ version }}.js"
|
||||
}, {
|
||||
"name": "ace",
|
||||
"version": "1.1.8",
|
||||
"date": "08.11.14",
|
||||
"local": "/modules/ace-builds/src-noconflict/ace.js",
|
||||
"remote": "//cdn.jsdelivr.net/ace/{{ version }}/noconflict/ace.js"
|
||||
}, {
|
||||
"name": "pako",
|
||||
"version": "0.2.5",
|
||||
"local": "/modules/pako/dist/pako.min.js",
|
||||
"remote": "//cdn.jsdelivr.net/pako/{{ version }}/pako.min.js"
|
||||
},{
|
||||
"name": "fancybox",
|
||||
"version": "2.1.5",
|
||||
"local": [
|
||||
|
|
|
|||
|
|
@ -1,39 +0,0 @@
|
|||
{
|
||||
"name": "pako",
|
||||
"main": "dist/pako.js",
|
||||
"homepage": "https://github.com/nodeca/pako",
|
||||
"authors": [
|
||||
"Andrei Tuputcyn <Andrew.Tupitsin@gmail.com>",
|
||||
"Vitaly Puzrin <vitaly@rcdesign.ru>"
|
||||
],
|
||||
"description": "deflate / inflate / gzip for bworser - very fast zlib port",
|
||||
"keywords": [
|
||||
"zlib",
|
||||
"deflate",
|
||||
"inflate",
|
||||
"gzip"
|
||||
],
|
||||
"license": "MIT",
|
||||
"ignore": [
|
||||
"**/.*",
|
||||
"node_modules",
|
||||
"bower_components",
|
||||
"test",
|
||||
"Makefile",
|
||||
"index*",
|
||||
"lib",
|
||||
"benchmark",
|
||||
"coverage"
|
||||
],
|
||||
"version": "0.2.5",
|
||||
"_release": "0.2.5",
|
||||
"_resolution": {
|
||||
"type": "version",
|
||||
"tag": "0.2.5",
|
||||
"commit": "eda5a97b543decd7e712534fa4cfcc88b85dc4ff"
|
||||
},
|
||||
"_source": "git://github.com/nodeca/pako.git",
|
||||
"_target": "~0.2.5",
|
||||
"_originalSource": "pako",
|
||||
"_direct": true
|
||||
}
|
||||
|
|
@ -1,78 +0,0 @@
|
|||
'use strict';
|
||||
|
||||
|
||||
module.exports = function(grunt) {
|
||||
var browsers = [{
|
||||
browserName: 'iphone',
|
||||
platform: 'OS X 10.8',
|
||||
version: '6'
|
||||
}, {
|
||||
browserName: 'android',
|
||||
platform: 'Linux',
|
||||
version: '4.0'
|
||||
}, {
|
||||
browserName: 'firefox',
|
||||
platform: 'XP',
|
||||
version: '27'
|
||||
}, {
|
||||
browserName: 'chrome',
|
||||
platform: 'XP',
|
||||
version: '32'
|
||||
}, {
|
||||
browserName: 'internet explorer',
|
||||
platform: 'WIN8',
|
||||
version: '10'
|
||||
}, {
|
||||
browserName: 'internet explorer',
|
||||
platform: 'VISTA',
|
||||
version: '9'
|
||||
}, {
|
||||
browserName: 'internet explorer',
|
||||
platform: 'Windows 7',
|
||||
version: '8'
|
||||
}, {
|
||||
browserName: 'internet explorer',
|
||||
platform: 'XP',
|
||||
version: '7'
|
||||
}, {/*
|
||||
browserName: 'opera',
|
||||
platform: 'Windows 2008',
|
||||
version: '12'
|
||||
}, {*/
|
||||
browserName: 'safari',
|
||||
platform: 'OS X 10.8',
|
||||
version: '6'
|
||||
}];
|
||||
|
||||
|
||||
grunt.initConfig({
|
||||
connect: {
|
||||
server: {
|
||||
options: {
|
||||
base: '',
|
||||
port: 9999
|
||||
}
|
||||
}
|
||||
},
|
||||
'saucelabs-mocha': {
|
||||
all: {
|
||||
options: {
|
||||
urls: ['http://127.0.0.1:9999/test/browser/test.html'],
|
||||
build: process.env.TRAVIS_JOB_NUMBER || ('local' + ~~(Math.random()*1000)),
|
||||
browsers: browsers,
|
||||
throttled: 3,
|
||||
testname: process.env.SAUCE_PROJ || 'mocha tests'
|
||||
}
|
||||
}
|
||||
},
|
||||
watch: {}
|
||||
});
|
||||
|
||||
// Loading dependencies
|
||||
for (var key in grunt.file.readJSON('package.json').devDependencies) {
|
||||
if (key !== 'grunt' && key.indexOf('grunt') === 0) { grunt.loadNpmTasks(key); }
|
||||
}
|
||||
|
||||
//grunt.registerTask('dev', ['connect', 'watch']);
|
||||
grunt.registerTask('test', ['connect', 'saucelabs-mocha']);
|
||||
};
|
||||
|
|
@ -1,50 +0,0 @@
|
|||
0.2.5 / 2014-07-19
|
||||
------------------
|
||||
|
||||
- Workaround for Chrome 38.0.2096.0 script parser bug, #30
|
||||
|
||||
|
||||
0.2.4 / 2014-07-07
|
||||
------------------
|
||||
|
||||
- Fixed bug in inflate wrapper, #29
|
||||
|
||||
|
||||
0.2.3 / 2014-06-09
|
||||
------------------
|
||||
|
||||
- Maintenance release, dependencies update.
|
||||
|
||||
|
||||
0.2.2 / 2014-06-04
|
||||
------------------
|
||||
|
||||
- Fixed iOS 5.1 Safary issue with `apply(typed_array)`, #26.
|
||||
|
||||
|
||||
0.2.1 / 2014-05-01
|
||||
------------------
|
||||
|
||||
- Fixed collision on switch dynamic/fixed tables.
|
||||
|
||||
|
||||
0.2.0 / 2014-04-18
|
||||
------------------
|
||||
|
||||
- Added custom gzip headers support.
|
||||
- Added strings support.
|
||||
- Improved memory allocations for small chunks.
|
||||
- ZStream properties rename/cleanup.
|
||||
- More coverage tests.
|
||||
|
||||
|
||||
0.1.1 / 2014-03-20
|
||||
------------------
|
||||
|
||||
- Bugfixes for inflate/deflate.
|
||||
|
||||
|
||||
0.1.0 / 2014-03-15
|
||||
------------------
|
||||
|
||||
- First release.
|
||||
|
|
@ -1,21 +0,0 @@
|
|||
(The MIT License)
|
||||
|
||||
Copyright (C) 2014 by Vitaly Puzrin
|
||||
|
||||
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.
|
||||
|
|
@ -1,172 +0,0 @@
|
|||
pako - zlib port to javascript, very fast!
|
||||
==========================================
|
||||
|
||||
[](https://travis-ci.org/nodeca/pako)
|
||||
[](https://www.npmjs.org/package/pako)
|
||||
|
||||
__Why pako is cool:__
|
||||
|
||||
- Almost as fast in modern JS engines as C implementation (see benchmarks).
|
||||
- Works in browsers, you can browserify any separate component.
|
||||
- Chunking support for big blobs.
|
||||
- Results are binary equal to well known [zlib](http://www.zlib.net/) (now v1.2.8 ported).
|
||||
|
||||
This project was done to understand how fast JS can be and is it necessary to
|
||||
develop native C modules for CPU-intensive tasks. Enjoy the result!
|
||||
|
||||
|
||||
__Famous projects, using pako:__
|
||||
|
||||
- [browserify](http://browserify.org/) (via [browserify-zlib](https://github.com/devongovett/browserify-zlib))
|
||||
- [JSZip](http://stuk.github.io/jszip/)
|
||||
- [mincer](https://github.com/nodeca/mincer)
|
||||
- [JS-Git](https://github.com/creationix/js-git) and
|
||||
[Tedit](https://chrome.google.com/webstore/detail/tedit-development-environ/ooekdijbnbbjdfjocaiflnjgoohnblgf)
|
||||
by [@creatronix](https://github.com/creationix)
|
||||
|
||||
|
||||
|
||||
__Benchmarks:__
|
||||
|
||||
```
|
||||
node v0.10.26, 1mb sample:
|
||||
|
||||
deflate-dankogai x 4.73 ops/sec ±0.82% (15 runs sampled)
|
||||
deflate-gildas x 4.58 ops/sec ±2.33% (15 runs sampled)
|
||||
deflate-imaya x 3.22 ops/sec ±3.95% (12 runs sampled)
|
||||
! deflate-pako x 6.99 ops/sec ±0.51% (21 runs sampled)
|
||||
deflate-pako-string x 5.89 ops/sec ±0.77% (18 runs sampled)
|
||||
deflate-pako-untyped x 4.39 ops/sec ±1.58% (14 runs sampled)
|
||||
* deflate-zlib x 14.71 ops/sec ±4.23% (59 runs sampled)
|
||||
inflate-dankogai x 32.16 ops/sec ±0.13% (56 runs sampled)
|
||||
inflate-imaya x 30.35 ops/sec ±0.92% (53 runs sampled)
|
||||
! inflate-pako x 69.89 ops/sec ±1.46% (71 runs sampled)
|
||||
inflate-pako-string x 19.22 ops/sec ±1.86% (49 runs sampled)
|
||||
inflate-pako-untyped x 17.19 ops/sec ±0.85% (32 runs sampled)
|
||||
* inflate-zlib x 70.03 ops/sec ±1.64% (81 runs sampled)
|
||||
|
||||
node v0.11.12, 1mb sample:
|
||||
|
||||
deflate-dankogai x 5.60 ops/sec ±0.49% (17 runs sampled)
|
||||
deflate-gildas x 5.06 ops/sec ±6.00% (16 runs sampled)
|
||||
deflate-imaya x 3.52 ops/sec ±3.71% (13 runs sampled)
|
||||
! deflate-pako x 11.52 ops/sec ±0.22% (32 runs sampled)
|
||||
deflate-pako-string x 9.53 ops/sec ±1.12% (27 runs sampled)
|
||||
deflate-pako-untyped x 5.44 ops/sec ±0.72% (17 runs sampled)
|
||||
* deflate-zlib x 14.05 ops/sec ±3.34% (63 runs sampled)
|
||||
inflate-dankogai x 42.19 ops/sec ±0.09% (56 runs sampled)
|
||||
inflate-imaya x 79.68 ops/sec ±1.07% (68 runs sampled)
|
||||
! inflate-pako x 97.52 ops/sec ±0.83% (80 runs sampled)
|
||||
inflate-pako-string x 45.19 ops/sec ±1.69% (57 runs sampled)
|
||||
inflate-pako-untyped x 24.35 ops/sec ±2.59% (40 runs sampled)
|
||||
* inflate-zlib x 60.32 ops/sec ±1.36% (69 runs sampled)
|
||||
```
|
||||
|
||||
zlib's test is partialy afferted by marshling (that make sense for inflate only).
|
||||
You can change deflate level to 0 in benchmark source, to investigate details.
|
||||
For deflate level 6 results can be considered as correct.
|
||||
|
||||
__Install:__
|
||||
|
||||
node.js:
|
||||
|
||||
```
|
||||
npm install pako
|
||||
```
|
||||
|
||||
browser:
|
||||
|
||||
```
|
||||
bower install pako
|
||||
```
|
||||
|
||||
|
||||
Example & API
|
||||
-------------
|
||||
|
||||
Full docs - http://nodeca.github.io/pako/
|
||||
|
||||
```javascript
|
||||
var pako = require('pako');
|
||||
|
||||
// Deflate
|
||||
//
|
||||
var input = new Uint8Array();
|
||||
//... fill input data here
|
||||
var output = pako.deflate(input);
|
||||
|
||||
// Inflate (simple wrapper can throw exception on broken stream)
|
||||
//
|
||||
var compressed = new Uint8Array();
|
||||
//... fill data to uncompress here
|
||||
try {
|
||||
var result = pako.inflate(compressed);
|
||||
catch (err) {
|
||||
console.log(err);
|
||||
}
|
||||
|
||||
//
|
||||
// Alternate interface for chunking & without exceptions
|
||||
//
|
||||
|
||||
var inflator = new pako.Inflate();
|
||||
|
||||
inflator.push(chunk1, false);
|
||||
inflator.push(chunk2, false);
|
||||
...
|
||||
inflator.push(chunkN, true); // true -> last chunk
|
||||
|
||||
if (inflator.err) {
|
||||
console.log(inflator.msg);
|
||||
}
|
||||
|
||||
var output = inflator.result;
|
||||
|
||||
```
|
||||
|
||||
Sometime you can wish to work with strings. For example, to send
|
||||
big objects as json to server. Pako detects input data type. You can
|
||||
force output to be string with option `{ to: 'string' }`.
|
||||
|
||||
```javascript
|
||||
var pako = require('pako');
|
||||
|
||||
var test = { my: 'super', puper: [456, 567], awesome: 'pako' };
|
||||
|
||||
var binaryString = pako.deflate(JSON.stringify(test), { to: 'string' });
|
||||
|
||||
//
|
||||
// Here you can do base64 encode, make xhr requests and so on.
|
||||
//
|
||||
|
||||
var restored = JSON.parse(pako.inflate(binaryString, { to: 'string' }));
|
||||
```
|
||||
|
||||
|
||||
Notes
|
||||
-----
|
||||
|
||||
Pako does not contain some specific zlib functions:
|
||||
|
||||
- __deflate__ - methods `deflateCopy`, `deflateBound`, `deflateParams`,
|
||||
`deflatePending`, `deflatePrime`, `deflateSetDictionary`, `deflateTune`.
|
||||
- __inflate__ - `inflateGetDictionary`, `inflateCopy`, `inflateMark`,
|
||||
`inflatePrime`, `inflateSetDictionary`, `inflateSync`, `inflateSyncPoint`,
|
||||
`inflateUndermine`.
|
||||
|
||||
|
||||
Authors
|
||||
-------
|
||||
|
||||
- Andrey Tupitsin [@anrd83](https://github.com/andr83)
|
||||
- Vitaly Puzrin [@puzrin](https://github.com/puzrin)
|
||||
|
||||
Personal thanks to Vyacheslav Egorov ([@mraleph](https://github.com/mraleph))
|
||||
for his awesome tutoruals about optimising JS code for v8,
|
||||
[IRHydra](http://mrale.ph/irhydra/) tool and his advices.
|
||||
|
||||
|
||||
License
|
||||
-------
|
||||
|
||||
MIT
|
||||
|
|
@ -1,23 +0,0 @@
|
|||
{
|
||||
"name": "pako",
|
||||
"main": "dist/pako.js",
|
||||
"homepage": "https://github.com/nodeca/pako",
|
||||
"authors": [
|
||||
"Andrei Tuputcyn <Andrew.Tupitsin@gmail.com>",
|
||||
"Vitaly Puzrin <vitaly@rcdesign.ru>"
|
||||
],
|
||||
"description": "deflate / inflate / gzip for bworser - very fast zlib port",
|
||||
"keywords": ["zlib", "deflate", "inflate", "gzip"],
|
||||
"license": "MIT",
|
||||
"ignore": [
|
||||
"**/.*",
|
||||
"node_modules",
|
||||
"bower_components",
|
||||
"test",
|
||||
"Makefile",
|
||||
"index*",
|
||||
"lib",
|
||||
"benchmark",
|
||||
"coverage"
|
||||
]
|
||||
}
|
||||
6368
modules/pako/dist/pako.js
vendored
6368
modules/pako/dist/pako.js
vendored
File diff suppressed because it is too large
Load diff
3
modules/pako/dist/pako.min.js
vendored
3
modules/pako/dist/pako.min.js
vendored
File diff suppressed because one or more lines are too long
3740
modules/pako/dist/pako_deflate.js
vendored
3740
modules/pako/dist/pako_deflate.js
vendored
File diff suppressed because it is too large
Load diff
2
modules/pako/dist/pako_deflate.min.js
vendored
2
modules/pako/dist/pako_deflate.min.js
vendored
File diff suppressed because one or more lines are too long
3025
modules/pako/dist/pako_inflate.js
vendored
3025
modules/pako/dist/pako_inflate.js
vendored
File diff suppressed because it is too large
Load diff
2
modules/pako/dist/pako_inflate.min.js
vendored
2
modules/pako/dist/pako_inflate.min.js
vendored
File diff suppressed because one or more lines are too long
|
|
@ -1,34 +0,0 @@
|
|||
{
|
||||
"name" : "pako",
|
||||
"description" : "zlib port to javascript - fast, modularized, with browser support",
|
||||
"version" : "0.2.5",
|
||||
"keywords" : [ "zlib", "deflate", "inflate", "gzip" ],
|
||||
"homepage" : "https://github.com/nodeca/pako",
|
||||
|
||||
"contributors" : [ "Andrei Tuputcyn (https://github.com/andr83)",
|
||||
"Vitaly Puzrin (https://github.com/puzrin)" ],
|
||||
|
||||
"bugs" : { "url": "https://github.com/nodeca/pako/issues" },
|
||||
"license" : { "type": "MIT", "url": "https://github.com/nodeca/pako/blob/master/LICENSE" },
|
||||
"repository" : { "type": "git", "url": "git://github.com/nodeca/pako.git" },
|
||||
|
||||
"main" : "./index.js",
|
||||
|
||||
"devDependencies" : {
|
||||
"mocha": "*",
|
||||
"benchmark": "*",
|
||||
"ansi": "*",
|
||||
"browserify":"*",
|
||||
"uglify-js": "*",
|
||||
"jshint": "*",
|
||||
"istanbul": "*",
|
||||
"ndoc": "*",
|
||||
"lodash": "*",
|
||||
"async": "*",
|
||||
|
||||
"grunt": "~0.4.4",
|
||||
"grunt-cli": "~0.1.13",
|
||||
"grunt-saucelabs": "~8.0.2",
|
||||
"grunt-contrib-connect": "~0.7.1"
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue