Example trying to use jsonpath
with browserify
https://www.npmjs.com/package/jsonpath
Install http-server
and browserify
globally:
npm install http-server browserify -g
Usage:
npm install
browserify main.js > bundle.js
http-server
Then open the localhost
URL in a browser and look at the JS console
Error:
Uncaught TypeError: require.resolve is not a function
Issue:
jsonpath
needs special Browserify options