mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-06 07:47:04 +00:00
Changed to match instructions for contributions
This commit is contained in:
@@ -1,21 +0,0 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
|
||||
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,16 +0,0 @@
|
||||
# Installation
|
||||
> `npm install --save @types/s3-download-stream`
|
||||
|
||||
# Summary
|
||||
This package contains type definitions for s3-download-stream (https://github.com/jb55/s3-download-stream).
|
||||
|
||||
# Details
|
||||
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/s3-download-stream
|
||||
|
||||
Additional Details
|
||||
* Last updated: Mon, 05 Feb 2018 16:21:00 GMT
|
||||
* Dependencies: stream, aws-sdk, node
|
||||
* Global values: none
|
||||
|
||||
# Credits
|
||||
These definitions were written by Caleb Everett <https://github.com/everettcaleb>.
|
||||
@@ -1,18 +1,6 @@
|
||||
{
|
||||
"name": "@types/s3-download-stream",
|
||||
"version": "0.1.0",
|
||||
"description": "TypeScript definitions for s3-download-stream",
|
||||
"main": "",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://www.github.com/DefinitelyTyped/DefinitelyTyped.git"
|
||||
},
|
||||
"scripts": {},
|
||||
"license": "MIT",
|
||||
"typeScriptVersion": "2.0",
|
||||
"types": "index.d.ts",
|
||||
"dependencies": {
|
||||
"@types/node": "*",
|
||||
"aws-sdk": "^2.188.0"
|
||||
}
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"aws-sdk": "^2.37.0"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
import * as S3Stream from "s3-download-stream";
|
||||
import * as AWS from "aws-sdk";
|
||||
import * as fs from "fs";
|
||||
|
||||
// Documentation for "params":
|
||||
// http://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/S3.html#getObject-property
|
||||
var config = {
|
||||
client: new AWS.S3({}),
|
||||
concurrency: 6,
|
||||
chunkSize: '512KB',
|
||||
params: {
|
||||
Key: 'key-name',
|
||||
Bucket: 'bucket-name'
|
||||
}
|
||||
}
|
||||
|
||||
S3Stream(config)
|
||||
.pipe(fs.createWriteStream('/path/to/a/file'));
|
||||
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es6",
|
||||
"dom"
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": false,
|
||||
"strictFunctionTypes": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"s3-download-stream-tests.ts"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Reference in New Issue
Block a user