`minimatch` follows the npmignore spec which is not quite the same as the gitignore spec. A package like https://www.npmjs.com/package/ignore would be more appropriate.
minimatchfollows the npmignore spec which is not quite the same as the gitignore spec.A package like https://www.npmjs.com/package/ignore would be more appropriate.