Skip to content

Commit b341598

Browse files
committed
Initial commit.
0 parents  commit b341598

File tree

16 files changed

+801
-0
lines changed

16 files changed

+801
-0
lines changed

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
node_modules/
2+
typings/
3+
*.js
4+
*.d.ts
5+
*.log.*
6+
*.log
7+
*.tgz

.npmignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
node_modules/
2+
typings/
3+
test/
4+
src/
5+
*.log.*
6+
*.log
7+
*.tgz

LICENSE

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2015 BusFaster Ltd
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.
22+

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
cget
2+
====
3+
4+
`cget` is a robust streaming cache for HTTP requests.
5+
It stores downloaded files into the filesystem with names and a directory structure matching the remote paths.
6+
This makes it easy to manually inspect the cached data.
7+
8+
License
9+
===
10+
11+
[The MIT License](https://raw.githubusercontent.com/charto/cget/master/LICENSE)
12+
13+
Copyright (c) 2015 BusFaster Ltd

package.json

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"name": "cget",
3+
"version": "0.0.1",
4+
"description": "Robust streaming cache for HTTP requests",
5+
"main": "dist/cget.js",
6+
"typings": "dist/cget.d.ts",
7+
"browser": "dist/browser.js",
8+
"scripts": {
9+
"prepublish": "tsd install && cd src && tsc && tsc -p tsconfig-browser.json && tsc -p ../test",
10+
"test": "node test/serve.js test/cache index.html"
11+
},
12+
"author": "Juha Järvi",
13+
"license": "MIT",
14+
"repository": {
15+
"type": "git",
16+
"url": "git+https://github.com/charto/cget.git"
17+
},
18+
"bugs": {
19+
"url": "https://github.com/charto/cget/issues"
20+
},
21+
"homepage": "https://github.com/charto/cget#readme",
22+
"keywords": [
23+
"cache",
24+
"caching",
25+
"request",
26+
"fetch",
27+
"download",
28+
"http",
29+
"server"
30+
],
31+
"dependencies": {
32+
"bluebird": "~3.0.5",
33+
"request": "~2.67.0"
34+
},
35+
"devDependencies": {
36+
"tsd": "~0.6.5",
37+
"typescript": "^1.8.0-dev.20151128"
38+
}
39+
}

src/cget.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import * as _util from './cget/util';
2+
export {Cache} from './cget/Cache';
3+
4+
export var util = _util;

0 commit comments

Comments
 (0)