Message from JavaScript discussions

March 2018

— Wont work in chrome, probably

— 

Hello all, I have created a module in npmjs, how to get the path from my module to the base project folder ?

- project_folder
- - node_modules
- - - - bin
- - - - my_module
- - src
- - index.js
- - package.json

— Framework is node.js express... Language is JavaScript

— npm install /path/to/your/module ?

— No, i've tried in my module using

path.dirname(require.main.filename)
the result is
/home/azam/Documents/CodeZone/project_folder/node_modules/my_module
but i want to get path project_folder folder

Message permanent page

— Uhhh which path?

— In php there is $_GET . I think there is some way to get info from express request object

— I think they want to do some directory traversal into the main

home/azam/Documents/CodeZone/project_folder/

Message permanent page

— From /node_modules/my_module you can simply do it with the dots:

../../

— zamCoder Maybe?

— Any frontend guy/girl who can help me out with small problem?

— Any frontend girl who can help me out from loneliness?