Try to determine the path of the package.json file for the current
running module. Iterates through parent directories of require.main.filename
until it finds a package.json. This may result in false positives.
Returns undefined|string
The path to a package.json file, or undefined if one could not be found.
Try to determine the path of the
package.jsonfile for the current running module. Iterates through parent directories ofrequire.main.filenameuntil it finds a package.json. This may result in false positives.