git-ss
TypeScript icon, indicating that this package has built-in type declarations

0.1.6 • Public • Published

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

/git-ss/

    Package Sidebar

    Install

    npm i git-ss

    Weekly Downloads

    3

    Version

    0.1.6

    License

    MIT

    Unpacked Size

    9.47 kB

    Total Files

    7

    Last publish

    Collaborators

    • hosobot