How To Get Module Path in NodeJS

Check Date

Works on 2019-03-06 15:00:08+0800

Question

How To Get Module Path in NodeJS ?

Answer

Node version v10.15.2

$ node

> module.paths

> .exit // exit node shell

Reference

Published 6 Mar 2019

Bring the answer to lost vistor
MagicRabbit on Twitter