I have a folder in node_modules
which is linked to another project (using npm link my-plugin
). Let's call it my-plugin
.
When I run ls node_modules
I get a list with all folders which contains my-plugin
of course. The my-plugin
folder has a different color (to notice me that it linked).
Now, I have a lot of folders in node_modules
and I want to get only the certain folder so I'm using grep
. Something like this:
ls node_modules | grep my-plugin
The problem is that grep
painting the expression so I'm missing the linked color of my-plugin
.
The problem is that sometimes I run my app with the link and sometimes with the original plugin so I need to know if it linked now or not.
I hope it's clear. If not, let me know.