Security News
Introducing the Socket Python SDK
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
@tus/gcs-store
Advanced tools
@tus/gcs-store
👉 Note: since 1.0.0 packages are split and published under the
@tus
scope. The old package,tus-node-server
, is considered unstable and will only receive security fixes. Make sure to use the new packages.
In Node.js (16.0+), install with npm:
npm install @tus/gcs-store
const {Server} = require('@tus/server')
const {GCSStore} = require('@tus/gcs-store')
const {Storage} = require('@google-cloud/storage')
const storage = new Storage({keyFilename: 'key.json'})
const server = new Server({
path: '/files',
datastore: new GCSStore({
bucket: storage.bucket('tus-node-server-ci'),
}),
})
// ...
This package exports GCSStore
. There is no default export.
new GCSStore(options)
Creates a new Google Cloud Storage store by passing a GCS bucket instance.
options.bucket
The bucket instance
The tus protocol supports optional extensions. Below is a table of the supported
extensions in @tus/gcs-store
.
Extension | @tus/gcs-store |
---|---|
Creation | ✅ |
Creation With Upload | ✅ |
Expiration | ❌ |
Checksum | ❌ |
Termination | ❌ |
Concatenation | ❌ |
This package is fully typed with TypeScript.
This package requires Node.js 16.0+.
See
contributing.md
.
FAQs
Google Cloud Storage for @tus/server
The npm package @tus/gcs-store receives a total of 240 weekly downloads. As such, @tus/gcs-store popularity was classified as not popular.
We found that @tus/gcs-store demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
Security News
Floating dependency ranges in npm can introduce instability and security risks into your project by allowing unverified or incompatible versions to be installed automatically, leading to unpredictable behavior and potential conflicts.
Security News
A new Rust RFC proposes "Trusted Publishing" for Crates.io, introducing short-lived access tokens via OIDC to improve security and reduce risks associated with long-lived API tokens.