How to view the list of files in the current directory to be published npm publish, in other words, those files that are not ignored by the ignoring rules .gitignoreand .npmignore.
I expect a specific command line or module / function Node.js to do the job.
source
share