
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@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, currently in beta at1.0.0-beta.1
.
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 server = new Server({
path: '/files',
datastore: new GCSStore({
projectId: 'id',
keyFilename: path.resolve('./some-path', 'keyfile.json'),
bucket: 'tus-node-server-ci',
}),
})
// ...
This package exports GCSStore
. There is no default export.
new GCSStore(options)
Creates a new Google Cloud Storage store with options.
options.projectId
The GCS project ID (string
).
options.keyFilename
Path to the keyfile with credentials (string
).
options.bucket
The bucket name.
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 348 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
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.