@0x-lerna-fork/log-packed

Log the result of npm pack --json

Usage no npm install needed!

<script type="module">
  import 0xLernaForkLogPacked from 'https://cdn.skypack.dev/@0x-lerna-fork/log-packed';
</script>

README

@0x-lerna-fork/log-packed

Log the result of npm pack --json

Extracted from the npm source.

Usage

const execa = require("execa");
const logPacked = require("@0x-lerna-fork/log-packed");

execa("npm", ["pack", "--json"]).then(result => {
  const tarballs = JSON.parse(result.stdout);
  tarballs.forEach(logPacked);
});

Install lerna for access to the lerna CLI.