@podman/libpod
v0.0.1
Published
js client for podman
Downloads
8
Readme
@podman/libpod
@podman/libpod is a JavaScript client for Podman.
It uses the swagger spec of Podman to generate the types using swagger-typescript-api.
:warning: the library is not using the podman binary locally.
Usage
import { Podman } from "podman-js";
const podman = new Podman({socketPath: "/run/user/1000/podman/podman.sock"});
const response = await podman.api.containers.containerList({ all: true });
const containers = await response.json();