Javascript implementation of giftless-client
You can install directly from npm:
$ npm i giftless-client
This implementation of giftless-client exposes a main class called Client
which contains a low-level LFS API commands callled batch
.
import { Client } from "giftless-client";
client = new Client("https://git-lfs.example.com", "somer4nd0mT0ken==", [
"basic",
]);
client.batch(
"myorg/myrepo",
"download",
[
{
oid: "12345678",
size: 123,
}
]
)
);
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');
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.