push-only

1.0.4 • Public • Published

push-only

Simple way to add file with Node JS.

Installation

npm i push-only

Usage

import push_only from "push-only";

async function run() {
  let result = await push_only({
    token: "your_github_token",
    repo: "user/repo",
    filename: "filename.txt",
    content: "content_in_base64",
  });
  console.log(result); // return "filename.txt" after success
}
run();

Vite Compability

export default defineConfig({
  resolve: {
    alias: {
      "node-fetch": "isomorphic-fetch",
    },
  },
});

Readme

Keywords

none

Package Sidebar

Install

npm i push-only

Weekly Downloads

1

Version

1.0.4

License

ISC

Unpacked Size

1.67 kB

Total Files

3

Last publish

Collaborators

  • mzaini30