first line replaces a space with “\ “. Then I replace a space with “[[:space:]]”. But then I incorrectly get left with “\[[:space:]]”. To avoid this I leverage the second line.
find.w –path $repo_npm –match ‘react-base-webpack”: “^1.0.1’
Using –regex option
find.w --path $repo_npm --regex 'react-base-webpack":[[:space:]]"\^1.0.1'
Ignore file
find.w --path $repo_npm --regex 'webpack":[[:space:]]"4.41.5' -not -iname "package-lock.json"