You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The docs should be updated to reflect that require('app-root-path') returns an object, not the path string. It should be .require('app-root-path').path.
You actually don't have to use .path because the object provides a toString() method. So if you use the object like a string, it will behave like a string.
That said, it might not hurt to document that quirk.
The docs should be updated to reflect that
require('app-root-path')
returns an object, not the path string. It should be.require('app-root-path').path
.https://github.com/inxilpro/node-app-root-path/blob/master/lib/app-root-path.js#L37
The text was updated successfully, but these errors were encountered: