Monday 1 May 2017

glob: find `folder` that are not inside `folder`

Using https://github.com/isaacs/node-glob

The task is to find all node_modules folder in the project dir, that are not inside other node_modules.

I tried: something like:

  • ('**/node_modules/', {ignore: '**/node_modules/**/node_modules/'})

  • ('**/node_modules/', {ignore: '**/node_modules/**'})

but it doesn't work.

Any advice on this?



via WHITECOLOR

No comments:

Post a Comment