How to use the can-npm-publish.canNpmPublish function in can-npm-publish

To help you get started, we’ve selected a few can-npm-publish examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github textlint / textlint / scripts / release / release.js View on Github external
const publishablePackages = await asyncFilter(packages, async pkg => {
        try {
            await canNpmPublish(pkg.location);
            return true;
        } catch (error) {
            return false;
        }
    });

can-npm-publish

A command line tool that check to see if `npm publish` is possible.

MIT
Latest version published 3 years ago

Package Health Score

53 / 100
Full package analysis

Popular can-npm-publish functions