Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
166
rated 0 times [  170] [ 4]  / answers: 1 / hits: 97588  / 9 Years ago, sat, september 26, 2015, 12:00:00

I have an empty new project, when i run npm init i got a list of questions to answer, for example:



name: (karma)
version: (1.0.0)
description:my project description
entry point: (index.js)


I am really confused about the one that says entry point, Should this be my index.html file or my app.js or is it something else?


More From » node.js

 Answers
36

Quoting from this blog post:




Entry point is the javascript file that will be invoked when consumers
of your module “require” it, this file will include the main logic for
your module, or if it is a large module you can export public
functions found with other files (typically in the lib directory)




So it should be your app.js file.


[#64921] Thursday, September 24, 2015, 9 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
bryantc

Total Points: 455
Total Questions: 96
Total Answers: 110

Location: San Marino
Member since Thu, Jun 30, 2022
2 Years ago
bryantc questions
Fri, Aug 13, 21, 00:00, 3 Years ago
Tue, Mar 30, 21, 00:00, 3 Years ago
Fri, Jun 5, 20, 00:00, 4 Years ago
Wed, May 27, 20, 00:00, 4 Years ago
;