1.0.4 • Published 2 years ago

push-only v1.0.4

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

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",
    },
  },
});
1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago