0.3.0 • Published 2 years ago

gist-s3 v0.3.0

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

Gist S3

Use Gist as a Simple Storage Service.

Install

yarn add gist-s3

Usage

import GistS3 from 'gist-s3';

const gistS3 = new GistS3({
  personalAccessToken: process.env.GH_TOKEN!,
  gistId: process.env.GH_GIST_ID!,
});

const main = async () => {
  await gistS3.put('hello.txt', 'world');
  const content = await gistS3.get('hello.txt');
};

main();