How to use the @seagull/commands-s3.S3.WriteFile function in @seagull/commands-s3

To help you get started, we’ve selected a few @seagull/commands-s3 examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github seagull-js / seagull / packages / services-s3 / src / mode / base.ts View on Github external
async writeFile(
    bucketName: string,
    filePath: string,
    content: string
  ): Promise> {
    const cmd = new S3C.WriteFile(bucketName, filePath, content)
    cmd.mode = this.mode
    return await this.handle(cmd.execute())
  }
github seagull-js / seagull / packages / plugin-items / src / item.ts View on Github external
async save() {
    const name = this.constructor.name
    const key = `${name}/${this.id}.json`
    const content = JSON.stringify(this)
    return new S3.WriteFile(config.bucket, key, content).execute()
  }
}

@seagull/commands-s3

S3 commands for the seagull framework

LGPL-3.0
Latest version published 2 years ago

Package Health Score

49 / 100
Full package analysis