Javascript implementation of giftless-client
Installation
You can install directly from npm:
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 = new Client("https://git-lfs.example.com", "somer4nd0mT0ken==", [ "basic", ]);
Sending an LFS batch API request
client.batch( "myorg/myrepo", "download", [ { oid: "12345678", size: 123, } ] ) );
Upload to Gitless LFS Server
Resources can be uploaded to lfs server using the client upload method upload(file, organisationId, datasetId, onProgress)
import { open } from 'frictionlessjs`; const file = open('/path/resource.csv'); await client.upload(file, 'my-org','dataset-name');
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.