⚠ This page is served via a proxy. Original site: https://github.com
This service does not collect credentials or authentication data.
Skip to content

nodejs client interface to ubuntu core snapd api

License

Notifications You must be signed in to change notification settings

roshub/node-snapd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-snapd

nodejs client interface to ubuntu core snapd rest api

With node-snapd, you can now easily introspect the Snapd host and the installed Snap packages.

API Documentation

const Snapd = require('node-snapd')

let snapd = new Snapd()

const snapList = await snapd.listSnaps()
console.log(snapList)

const coreInfo = await snapd.info({name: 'core'})
console.log(coreInfo)

When run with elevated permissions you can also install and configure applications in the system.

const vectrId = await snapd.install({name: 'vectr'})

Defaults

  • SnapClient.authFile: $HOME/.snap/auth.json
  • SnapClient.socketPath: /run/snapd.socket

Developing

To develop you will need to install

  • nodejs
  • yarn
  • snapd

To interactively develop run:

yarn
yarn watch

Tests

To run tests:

yarn test

Further Reading

Credits

node-snapd is open source software developed by RosHub Inc.

  • Philetus Weller
  • Alan Meekins

About

nodejs client interface to ubuntu core snapd api

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •