npm.io
0.1.6 • Published 4 years ago

git-ss

Licence
MIT
Version
0.1.6
Deps
11
Size
9 kB
Vulns
7
Weekly
0

git-ss

Save a snapshot of a directory to git.

Installation

npm install git-ss
# or
yarn add git-ss

Usage

CommonJS
const { pushToGit } = require('git-ss');

async function takeSnapshot() {
  await pushToGit('./mydata', 'https://github.com/hosso/mybackup.git');
}

takeSnapshot();
TypeScript
import { pushToGit } from 'git-ss';

async function takeSnapshot() {
  await pushToGit('./mydata', 'https://github.com/hosso/mybackup.git');
}

takeSnapshot();

License

MIT

Keywords