0.1.0 • Published 5 years ago

giftless-client v0.1.0

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

giftless-client-js

Javascript implementation of giftless-client

Installation

You can install directly from npm:

$ npm i giftless-client

API

This implementation of giftless-client exposes a main class called Client which contains a low-level LFS API commands callled batch.

instantiating Client

import Client from "giftless-client";
client = Client(
  (lfs_server_url = "https://git-lfs.example.com"),
  (auth_token = "somer4nd0mT0ken=="),
  (transfer_adapters = ["basic"])
);

Sending an LFS batch API request

client.batch(
  (prefix = "myorg/myrepo"),
  (operation = "download"),
  (objects = {
    oid: "12345678",
    size: 123,
  })
);

License

Giftless Client Javascript is free software distributed under the terms of the MIT license. See LICENSE for details.

Giftless Client Javascript is (c) 2020 Datopian / Viderum Inc.

0.1.0

5 years ago