My FeedDiscussionsHeadless CMS
New
Sign in
Log inSign up
Learn more about Hashnode Headless CMSHashnode Headless CMS
Collaborate seamlessly with Hashnode Headless CMS for Enterprise.
Upgrade ✨Learn more

How do I deal with dependency when using require() on an npm module

estevan carlos benson's photo
estevan carlos benson
·May 23, 2017

I have a small script that depends on a module loaded using require. The script is loaded before the module. How do I fix that?