push-only
v1.0.4
Published
Simple way to add file with Node JS.
Downloads
4
Readme
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",
},
},
});