I want to publish a nodejs public repo on github as NPM package, to be installed globally, with
npm install -g mypackage
The package contains also some executables and some source code files (example programs) in the example
directory:
examples/file_1.js
examples/file_2.js
What's the correct way to let access LOCALLY (without access the github repo) these example files, to a user that installed the package?
examples
files are in directory: .../node_modules/examples
, I so could suggest to read the files at:
echo `npm root -g`/mypackage/examples
Make sense? Any cleaner solution? thx