Relative and absolute paths - Deepstash

Relative and absolute paths

Besides resolving modules from within the node_modules directories, we can also place the module anywhere we want and require it with either relative paths (./ and ../ ) or with absolute paths starting with /

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 Relative and absolute paths

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...

Drive 6: Scarcity and Impatience

It motivates us because we are either unable to have something immediately, or because there is great difficulty in obtaining it.

  • We chase that which moves away from us
  • We want what we cannot have
  • We only place value on things that are difficult to obtain

Why western seekers (unknowingly) misinterpret Vedanta

Western seekers often project their prior conditioning from Judeo-Christian, secular, or scientific frameworks onto it — with assumptions that align it with their native traditions, ignoring key differences.

This leads to se...

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