0.2.0 • Published 3 years ago

gist-io v0.2.0

Weekly downloads
60
License
ISC
Repository
-
Last release
3 years ago

gist-io - A simple way to CRUD a gist.

Use a gist as a place to save non-vital, non-persistent, non-scalable JSON data.

Just a 'lil db.

  1. How to install it
$ npm install gist-io
  1. How to use it
const { GistDB } = require("gist-io");

const db = new GistDB({
  token: "YOUR_GITHUB_TOKEN",
});

db.getFileList("GIST_ID").then((data) => console.log(data));

TODO

  • Recieve a gist ID, and use it from the constructor.

Licence MIT