If a file extension was not specified, the first thing Node will try to resolve is A.Js file. If it can’t find A.Json file, it will try A.Json file and it will Parse The.Json file if found as a Json text file. After that, it will try to find a Binary.Node file. To remove ambiguity,
6
4 reads
CURATED FROM
IDEAS CURATED BY
The idea is part of this collection:
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 JSON and C/C++ addons
If you want to only resolve the module and not execute it, you can use the require.resolve
function. This behaves exactly the same as the main require
function, but does not load the file. It will still throw an error if the file does not exist and it will return the ful...
As we are more inclined to do things we enjoy, it is better to find some fun in what we resolve to do.
If the task is unpleasant by nature, try to cover it with your favorite music or a reward after completion.
We forget almost 70% of the things after 24 hours. So we need a revision plan. Whenever we revise something it takes less time than the previous. According to the study, after reading something, we must revise that within 24 hours then within a week, then within 1 month after that wheneve...
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.
I agree to receive email updates