@0x-lerna-fork/log-packed 中文文档教程
@0x-lerna-fork/log-packed
记录 npm pack --json
从 npm 源 中提取的结果.
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);
});
安装 lerna 以访问 lerna
CLI。
@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.