UNPKG

npm-fetch-changelog

Version:

fetch the changelog for an npm package from GitHub

14 lines 442 B
#!/usr/bin/env node import { spawn } from 'child_process'; const child = spawn(process.execPath, [require.resolve('./npm-fetch-changelog.js'), ...process.argv.slice(2), '--major'], { stdio: 'inherit' }); child.on('error', error => { // eslint-disable-next-line no-console console.error(error.stack); process.exit(1); }); child.on('close', (code, signal) => { if (code != null) process.exit(code); process.exit(signal ? 1 : 0); });