GCP Storage client for Image Steam: https://github.com/asilvas/node-image-steam
Installations
npm install image-steam-gcs
Developer Guide
Typescript
No
Module System
CommonJS
Node Version
16.10.0
NPM Version
7.24.0
Score
49.9
Supply Chain
70.4
Quality
70.8
Maintenance
50
Vulnerability
95.8
License
Contributors
Unable to fetch Contributors
Languages
JavaScript (100%)
Developer
deanboonzaier
Download Statistics
Total Downloads
426
Last Day
5
Last Week
7
Last Month
16
Last Year
93
GitHub Statistics
5 Commits
1 Watching
1 Branches
2 Contributors
Bundle Size
1.30 MB
Minified
352.74 kB
Minified + Gzipped
Package Meta Information
Latest Version
1.0.1
Package Id
image-steam-gcs@1.0.1
Unpacked Size
7.89 kB
Size
2.96 kB
File Count
4
NPM Version
7.24.0
Node Version
16.10.0
Total Downloads
Cumulative downloads
Total Downloads
426
Last day
150%
5
Compared to previous day
Last week
75%
7
Compared to previous week
Last month
220%
16
Compared to previous month
Last year
1.1%
93
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dependencies
2
image-steam-gcs
Google Cloud Storage driver for Image Steam.
Setup
1git clone https://github.com/deanboonzaier/image-steam-gcs.git 2cd image-steam-gcs 3npm install
Options
Please note that many of the options listed below can be derived automatically from the environment when running in a Google Cloud environment with an attached service account using Application Default Credentials (ADC), see using GCP ADC for more information on this.
Name | Type | Attributes | Info |
---|---|---|---|
bucket | string | Required | Name of the GCS bucket. |
projectId | string | Optional | The project ID of the GCP project that owns the service account. Can be detected automatically when running in an environment that uses ADC. |
serviceAccountKeyFilename | string | Optional | Full path to the a .json, .pem, or .p12 key downloaded from the Google Developers Console. If you provide a path to a JSON file, the projectId option above is not necessary. NOTE: .pem and .p12 require you to specify the clientEmail option as well. |
clientEmail | string | Optional | Required when used in combination with the privateKey option. The email address of the service account associated with the specified privateKey . |
privateKey | string | Optional | Required when used in combination with the clientEmail option. The service account private key for the specified clientEmail . |
See the Google Cloud Storage Options docs for more details.
Usage
Example:
1import isteam from 'image-steam'; 2 3const options = { 4 storage: { 5 app: { 6 static: { 7 driver: 'http', 8 endpoint: 'https://some-endpoint.com' 9 } 10 }, 11 mygcsapp: { 12 driverPath: 'image-steam-gcs', 13 bucket: 'myBucketNameGoesHere', 14 projectId: 'cobra-starship', 15 clientEmail: 'myservice-account@cobra-starship.iam.gserviceaccount.com', 16 privateKey: '-----BEGIN PRIVATE KEY-----\nSERVICE-ACCOUNT-PRIVATE-KEY-GOES-HERE\n-----END PRIVATE KEY-----\n' 17 } 18 } 19} 20 21http.createServer(new isteam.http.Connect(options).getHandler()).listen(13337, '127.0.0.1');
No vulnerabilities found.
No security vulnerabilities found.