D
D
Dead_Seagull2016-02-11 11:04:19
JavaScript
Dead_Seagull, 2016-02-11 11:04:19

Node.js: how to execute a global module locally?

I practice writing cli-applications for node.js
The application must be installed globally, but when calling a command through the terminal, work with files in an open directory.
After publishing and globally installing the application, the call from the console works, but the application itself is executed in the module folder, and not in the one that is open in the console.
Please tell me how to correctly specify the path to the folder opened in the console from the global module in index.js.
Thank you.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
D
Dmitry Ermolaev, 2014-10-15
@lightalex

Google says that there is such an article habrahabr.ru/post/197448
and the article says that there is such a constructor gmaps-samples-v3.googlecode.com/svn/trunk/styledma...

S
Sergey Nekrasov, 2014-10-23
@Judixel

snazzymaps.com/tag/greyscale - turnkey solutions

D
Dmitry Vasilyuk, 2014-10-16
@vasilukwolf

There are several ways. The most reliable Goole API for maps. But it's difficult.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question