🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

distrobox-node

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

distrobox-node

node api for distrobox

Source
npmnpm
Version
1.1.1
Version published
Weekly downloads
21
2000%
Maintainers
1
Weekly downloads
 
Created
Source

Distrobox-Node

Distrobox API for Node.JS

Usage

run npm install distrobox-node in your project

const distrobox = require('distrobox-node')
// create a container (os,name,args), returns stdout
await distrobox.create('ubuntu','ubuntu')
//remove a container (name, args), returns stdout
await distrobox.remove('ubuntu')
//list all containers (args), returns a list of objects, containing information about each container
await distrobox.list()
//stop a container (name, args), returns stdout
await distrobox.stop('ubuntu')    

Pretty simple, right?
Your a smart developer so if you have any issues, just look at the code.
You want more features? Roll your own code. (I don't really have time to do anything but maintain the code)
You have a question? If you can't find the answer in the code, post an issue and state in the title that its a question.
If it's a bug, say it's a bug.
Also, the args parameter is a object containing arguments that are passed to distrobox that looks like this,

{"R":"","force":""}

The keys being the argument name, and the values being the argument value.
Simple.

Keywords

distrobox

FAQs

Package last updated on 16 Jul 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts