Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@tus/gcs-store

Package Overview
Dependencies
Maintainers
3
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tus/gcs-store

Google Cloud Storage for @tus/server

  • 1.4.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
418
decreased by-1.42%
Maintainers
3
Weekly downloads
 
Created
Source

@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.

Contents

  • Install
  • Use
  • API
  • Types
  • Compatibility
  • Contribute
  • License

Install

In Node.js (16.0+), install with npm:

npm install @tus/gcs-store

Use

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'),
  }),
})
// ...

API

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

Extensions

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

Types

This package is fully typed with TypeScript.

Compatibility

This package requires Node.js 16.0+.

Contribute

See contributing.md.

License

MIT © tus

FAQs

Package last updated on 05 Sep 2024

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc