snap-nodejs

read ubuntu snap files

Usage no npm install needed!

<script type="module">
  import snapNodejs from 'https://cdn.skypack.dev/snap-nodejs';
</script>

README

snap-nodejs

Read metadata from ubuntu snap (2.0) files

Install

sudo apt update && sudo apt install squashfs-tools
npm install snap-nodejs

Usage

var snap = require("../snap-nodejs");

snap.read("mySnapFile.snap", function(metadata){
 console.log(metadata);
})