Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

node-opkg

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-opkg

A simple command-line wrapper around the openwrt `opkg` package manager.

  • 0.5.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
6
decreased by-57.14%
Maintainers
1
Weekly downloads
 
Created
Source

node-opkg

A simple command-line wrapper around the openwrt opkg package manager.

Allows to usage with a Node API.

Information: https://wiki.openwrt.org/doc/techref/opkg

Installation

Available as npm module:

npm install node-opkg

Usage

All methods return Promises. Command line options can be defined in the following ways:

{forceDepends: null, V: 4}
[--force-depends, -V4]

You can also get the output streams via the options argument:

{
  forceDepends: null,
  _stdout: (stdout) => {},
  _stderr: (stderr) => {}
}

Functions

update ⇒ Promise

Update package lists (update)

ParamTypeDescription
[opts]Array | ObjectCommand-line options

upgrade ⇒ Promise

Upgrade package(s) (upgrade)

ParamTypeDescription
pkgString | Array.<String>Package(s)
[opts]Array | ObjectCommand-line options

install ⇒ Promise

Install package(s) (install)

ParamTypeDescription
pkgString | Array.<String>Package(s)
[opts]Array | ObjectCommand-line options

configure ⇒ Promise

Configure package(s) (configure)

ParamTypeDescription
pkgString | Array.<String>Package(s)
[opts]Array | ObjectCommand-line options

remove ⇒ Promise

Remove package(s) (remove)

ParamTypeDescription
pkgString | Array.<String>Package(s)
[opts]Array | ObjectCommand-line options

flag ⇒ Promise

Flag package(s) (flag)

ParamTypeDescription
flagStringFlag
pkgString | Array.<String>Package(s)
[opts]Array | ObjectCommand-line options

list ⇒ Promise

Lists packages (list)

ParamTypeDescription
listStringList type ('available', 'installed', 'upgradable')
[pkg]String | Array.<String>Argument for 'available'
[opts]Array | ObjectCommand-line options

listPackages ⇒ Promise

Lists available packages (list)

ParamTypeDescription
[pkg]String | Array.<String>Package name(s)
[opts]Array | ObjectCommand-line options

listPackages ⇒ Promise

Lists installed packages (list)

ParamTypeDescription
[opts]Array | ObjectCommand-line options

listPackages ⇒ Promise

Lists upgradable packages (list)

ParamTypeDescription
[opts]Array | ObjectCommand-line options

changedConffiles ⇒ Promise

Lists changed config files (list-changed-conffiles)

ParamTypeDescription
[opts]Array | ObjectCommand-line options

files ⇒ Promise

Shows package files (files)

ParamTypeDescription
pkgString | Array.<String>Package name(s)
[opts]Array | ObjectCommand-line options

status ⇒ Promise

Find package providing given file

ParamTypeDescription
qStringQuery
[opts]Array | ObjectCommand-line options

info ⇒ Promise

Shows package info (info)

ParamTypeDescription
pkgString | Array.<String>Package name(s)
[opts]Array | ObjectCommand-line options

status ⇒ Promise

Shows package status(es) (status)

ParamTypeDescription
[pkg]String | Array.<String>Package name(s)
[opts]Array | ObjectCommand-line options

find ⇒ Promise

Finds a package by query string

ParamTypeDescription
qStringQuery string

setExecPath

Sets the opkg executable path

ParamTypeDescription
pathStringPath to executable

Changelog

  • 0.5.0 - Initial release

Keywords

FAQs

Package last updated on 26 Feb 2017

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc