Parent-child relation between files - Deepstash

Parent-child relation between files

Create a Lib/Util.Js file and add a Console.Log line there to identify it. Also, Console.Log the Module object itself. Do the same for an Index.Js file, which is what we’ll be executing with Node: NOTE how the main index Module (Id:' .') is now listed as the parent for the Lib/Util Module.

6

6 reads

CURATED FROM

IDEAS CURATED BY

christophecarr

Transport planner

The idea is part of this collection:

Machine Learning With Google

Learn more about computerscience with this collection

Understanding machine learning models

Improving data analysis and decision-making

How Google uses logic in machine learning

Related collections

Similar ideas to Parent-child relation between files

Resolving a local path

Every Module object gets an Id property to identify it. This Id is usually the full path to the file, but in a Repl session it’s simply Repl>. Node allows many ways to require a file (for example, with a relative path or a Pre-Configured path) before we can load the content of a file into the me...

The idea is not the start-up

The idea is not the start-up

When you raise money, it is not an achievement, it’s an obligation. When you raise money, you’re not just answerable to your customers but you’re also answerable to investors because they desire a return. Because they’ve raised money from someone who is also looking for a return....

How To Create Rooms In a Memory Palace

How To Create Rooms In a Memory Palace

  1. Bring to mind a room that you are very familiar with. 
  2. As you walk into the room you’re familiar with, the corner over your left shoulder is number 1. Then, moving clockwise round the room, the next wall is number 2. And so on, so that there are 8 numbers. 9 will be...

Read & Learn

20x Faster

without
deepstash

with
deepstash

with

deepstash

Personalized microlearning

100+ Learning Journeys

Access to 200,000+ ideas

Access to the mobile app

Unlimited idea saving

Unlimited history

Unlimited listening to ideas

Downloading & offline access

Supercharge your mind with one idea per day

Enter your email and spend 1 minute every day to learn something new.

Email

I agree to receive email updates