githttp-fs-client
v1.0.8
Published
Git HTTP FS client for Node. Used in pair with Git HTTP FS, a git-backed content management database served over HTTP.
Readme
node-githttp-fs-client
Git HTTP FS client for Node. Used in pair with Git HTTP FS, a git-backed content management database served over HTTP.
Git HTTP FS Client is used to manage per-tenant Git content databases, over the Git HTTP FS HTTP API. All operations supported by the Git HTTP FS HTTP API are also supported in this client.
🇵🇹 Crafted in Lisbon, Portugal.
How to install?
Include githttp-fs-client in your package.json dependencies.
Alternatively, you can run npm install githttp-fs-client --save.
How to use?
Then, you can import githttp-fs-client and start listing and committing files:
import { GitHTTPFSClient } from "../lib/index.ts";
const client = new GitHTTPFSClient({
baseUrl: "http://localhost:5355",
apiKey: "MySecretAPIKey"
});
const files = await client.listFiles("<collection_id>", "<tenant_id>");
console.log("Listed files:", files);What is Git HTTP FS?
ℹ️ Wondering what Git HTTP FS is? Check out crisp-oss/githttp-fs.
